
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>备忘录[译] · 雪之梦</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="xinwuyun">
        
        
    
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-advanced-emoji/emoji-website.css">
                
            
                
                <link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-icp/footer.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../../github/" />
    
    
    <link rel="prev" href="common.html" />
    

    <link href="https://xinwuyun.github.io/rss" title="雪之梦" rel="alternate" type="application/rss+xml" />

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"xinwuyun","repo":"xinwuyun.github.io","type":"star","size":"small"}]};
    </script>

    
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    
    
    
    
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/apple-touch-icon-precomposed-152.png">
    
    
        
    
    
        
    

    
    <link rel="stylesheet" href="../../gitbook/gitbook-plugin-chart/c3/c3.min.css">
    <script src="../../gitbook/gitbook-plugin-chart/c3/d3.min.js"></script>
    <script src="../../gitbook/gitbook-plugin-chart/c3/c3.min.js"></script>
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://blog.xinwuyun.cn/" target="_blank" class="custom-link">技术博客</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">入门教程</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../../markdown/">
            
                <a href="../../markdown/">
            
                    
                    markdown 入门教程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../">
            
                <a href="../">
            
                    
                    git 入门教程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="../base/about.html">
            
                <a href="../base/about.html">
            
                    
                    初识 git
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1.1" data-path="../base/install.html">
            
                <a href="../base/install.html">
            
                    
                    安装 git
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.1.2" data-path="../base/config.html">
            
                <a href="../base/config.html">
            
                    
                    配置 git
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="../usage/about.html">
            
                <a href="../usage/about.html">
            
                    
                    实战 git
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.2.1" data-path="../usage/local-repository.html">
            
                <a href="../usage/local-repository.html">
            
                    
                    本地仓库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.2" data-path="../usage/version-manage.html">
            
                <a href="../usage/version-manage.html">
            
                    
                    版本管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.3" data-path="../usage/reset.html">
            
                <a href="../usage/reset.html">
            
                    
                    回到过去
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.4" data-path="../usage/concept.html">
            
                <a href="../usage/concept.html">
            
                    
                    基本概念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.5" data-path="../usage/version-control.html">
            
                <a href="../usage/version-control.html">
            
                    
                    版本控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.6" data-path="../usage/checkout-reset.html">
            
                <a href="../usage/checkout-reset.html">
            
                    
                    撤销更改
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.7" data-path="../usage/delete.html">
            
                <a href="../usage/delete.html">
            
                    
                    删除文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.8" data-path="../usage/remote-repository.html">
            
                <a href="../usage/remote-repository.html">
            
                    
                    远程仓库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9" data-path="../usage/branch-manage.html">
            
                <a href="../usage/branch-manage.html">
            
                    
                    分支管理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.2.9.1" data-path="../usage/branch-overview.html">
            
                <a href="../usage/branch-overview.html">
            
                    
                    分支总览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.2" data-path="../usage/branch-merge-with-conflict.html">
            
                <a href="../usage/branch-merge-with-conflict.html">
            
                    
                    冲突合并
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.3" data-path="../usage/branch-strategy.html">
            
                <a href="../usage/branch-strategy.html">
            
                    
                    分支策略
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.4" data-path="../usage/branch-emergency-fixbug.html">
            
                <a href="../usage/branch-emergency-fixbug.html">
            
                    
                    紧急修复
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.5" data-path="../usage/branch-rebase.html">
            
                <a href="../usage/branch-rebase.html">
            
                    
                    变基合并
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.6" data-path="../usage/branch-remote.html">
            
                <a href="../usage/branch-remote.html">
            
                    
                    协同开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2.9.7" data-path="../usage/local-remote-repository.html">
            
                <a href="../usage/local-remote-repository.html">
            
                    
                    本地和远程仓库的本质
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.2.10" data-path="../usage/tag.html">
            
                <a href="../usage/tag.html">
            
                    
                    里程碑式标签
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="../custom/about.html">
            
                <a href="../custom/about.html">
            
                    
                    私人定制
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.3.1" data-path="../custom/ignore.html">
            
                <a href="../custom/ignore.html">
            
                    
                    忽略文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3.2" data-path="../custom/sync-remote-repo.html">
            
                <a href="../custom/sync-remote-repo.html">
            
                    
                    同步推送多Git仓库
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="../server/private.html">
            
                <a href="../server/private.html">
            
                    
                    搭建私服
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="../tools/about.html">
            
                <a href="../tools/about.html">
            
                    
                    扩展工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.5.1" data-path="../tools/git-bash-command.html">
            
                <a href="../tools/git-bash-command.html">
            
                    
                    git bash 常见命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.2" data-path="../tools/git-bash-relationship.html">
            
                <a href="../tools/git-bash-relationship.html">
            
                    
                    git bash 朋友圈
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.3" data-path="../tools/git-bash-tree.html">
            
                <a href="../tools/git-bash-tree.html">
            
                    
                    git bash 扩展tree命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.4" data-path="../tools/git-bash-extend-up.html">
            
                <a href="../tools/git-bash-extend-up.html">
            
                    
                    git bash 扩展命令(上)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.5" data-path="../tools/git-bash-extend-middle.html">
            
                <a href="../tools/git-bash-extend-middle.html">
            
                    
                    git bash 扩展命令(中)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.6" data-path="../tools/git-bash-extend-down.html">
            
                <a href="../tools/git-bash-extend-down.html">
            
                    
                    git bash 扩展命令(下)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5.7" data-path="../tools/git-submodule-quickstart.html">
            
                <a href="../tools/git-submodule-quickstart.html">
            
                    
                    git submodule 父子模块
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="about.html">
            
                <a href="about.html">
            
                    
                    沙海拾贝
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.6.1" data-path="common.html">
            
                <a href="common.html">
            
                    
                    知识速查
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.2.6.2" data-path="cheatsheet-translation.html">
            
                <a href="cheatsheet-translation.html">
            
                    
                    备忘录[译]
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../../github/">
            
                <a href="../../github/">
            
                    
                    github 入门教程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="../../github/speedup.html">
            
                <a href="../../github/speedup.html">
            
                    
                    github 访问速度太慢
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="../../github/badge.html">
            
                <a href="../../github/badge.html">
            
                    
                    github 徽章从何而来
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../../myGitbook/">
            
                <a href="../../myGitbook/">
            
                    
                    gitbook 入门教程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="../../myGitbook/preparation/prepare.html">
            
                <a href="../../myGitbook/preparation/prepare.html">
            
                    
                    准备阶段
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1.1" data-path="../../myGitbook/preparation/front-knowledge.html">
            
                <a href="../../myGitbook/preparation/front-knowledge.html">
            
                    
                    前置知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.1.2" data-path="../../myGitbook/preparation/environmental-requirements.html">
            
                <a href="../../myGitbook/preparation/environmental-requirements.html">
            
                    
                    环境要求
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="../../myGitbook/experience/preview.html">
            
                <a href="../../myGitbook/experience/preview.html">
            
                    
                    快速体验
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.2.1" data-path="../../myGitbook/experience/gitbook-cli.html">
            
                <a href="../../myGitbook/experience/gitbook-cli.html">
            
                    
                    gitbook-cli 命令行操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2.2" data-path="../../myGitbook/experience/gitbook-editor.html">
            
                <a href="../../myGitbook/experience/gitbook-editor.html">
            
                    
                    gitbook-editor 编辑器操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2.3" data-path="../../myGitbook/experience/gitbook-com.html">
            
                <a href="../../myGitbook/experience/gitbook-com.html">
            
                    
                    gitbook.com 官网操作
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="../../myGitbook/advance/advance.html">
            
                <a href="../../myGitbook/advance/advance.html">
            
                    
                    高级进阶
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.3.1" data-path="../../myGitbook/advance/plugin.html">
            
                <a href="../../myGitbook/advance/plugin.html">
            
                    
                    插件介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.3.1.1" data-path="../../myGitbook/advance/plugin-practical.html">
            
                <a href="../../myGitbook/advance/plugin-practical.html">
            
                    
                    实用插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3.1.2" data-path="../../myGitbook/advance/plugin-theme.html">
            
                <a href="../../myGitbook/advance/plugin-theme.html">
            
                    
                    主题插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3.1.3" data-path="../../myGitbook/advance/plugin-develop.html">
            
                <a href="../../myGitbook/advance/plugin-develop.html">
            
                    
                    开发插件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4.3.2" data-path="../../myGitbook/advance/export.html">
            
                <a href="../../myGitbook/advance/export.html">
            
                    
                    导出电子书
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3.3" data-path="../../myGitbook/advance/publish.html">
            
                <a href="../../myGitbook/advance/publish.html">
            
                    
                    发布电子书
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4.4" data-path="../../myGitbook/openwrite/">
            
                <a href="../../myGitbook/openwrite/">
            
                    
                    公众号引流
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.5" data-path="../../myGitbook/seo/">
            
                <a href="../../myGitbook/seo/">
            
                    
                    优化搜索
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.6" data-path="../../myGitbook/issue/">
            
                <a href="../../myGitbook/issue/">
            
                    
                    常见问题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.6.1" data-path="../../myGitbook/issue/rm-output-directory.html">
            
                <a href="../../myGitbook/issue/rm-output-directory.html">
            
                    
                    热加载失败治标之法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.6.2" data-path="../../myGitbook/issue/modify-default-fold.html">
            
                <a href="../../myGitbook/issue/modify-default-fold.html">
            
                    
                    初始化默认折叠效果
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4.7" data-path="../../myGitbook/reference/">
            
                <a href="../../myGitbook/reference/">
            
                    
                    参考更多
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">编程笔记</li>
        
        
    
        <li class="chapter " data-level="3.1" >
            
                <a target="_blank" href="https://xinwuyun.github.io/learn-java/">
            
                    
                    java 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" >
            
                <a target="_blank" href="https://xinwuyun.github.io/learn-go/">
            
                    
                    go 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" >
            
                <a target="_blank" href="https://xinwuyun.github.io/learn-php/">
            
                    
                    php 学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" >
            
                <a target="_blank" href="https://xinwuyun.github.io/learn-python/">
            
                    
                    python 学习笔记
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">兴趣开发</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../../zero2devops/">
            
                <a href="../../zero2devops/">
            
                    
                    从零开始搭建服务器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1.1" data-path="../../zero2devops/login-and-logout.html">
            
                <a href="../../zero2devops/login-and-logout.html">
            
                    
                    从登录服务器开始
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.2" data-path="../../zero2devops/docker.html">
            
                <a href="../../zero2devops/docker.html">
            
                    
                    更加优雅地部署项目
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.3" data-path="../../zero2devops/docker-get-started.html">
            
                <a href="../../zero2devops/docker-get-started.html">
            
                    
                    跟着官方体验 Docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.4" data-path="../../zero2devops/docker-example.html">
            
                <a href="../../zero2devops/docker-example.html">
            
                    
                    快速尝鲜基于 Docker 部署项目
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.5" data-path="../../zero2devops/aliyun-oss-static.html">
            
                <a href="../../zero2devops/aliyun-oss-static.html">
            
                    
                    利用阿里云 OSS部署静态网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.6" data-path="../../zero2devops/nginx-https.html">
            
                <a href="../../zero2devops/nginx-https.html">
            
                    
                    免费实现https访问网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.7" data-path="../../zero2devops/webhook.html">
            
                <a href="../../zero2devops/webhook.html">
            
                    
                    webhook
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="../../devops/">
            
                <a href="../../devops/">
            
                    
                    运维部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.2.1" data-path="../../devops/docker-env.html">
            
                <a href="../../devops/docker-env.html">
            
                    
                    docker 环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.2" data-path="../../devops/docker-ops.html">
            
                <a href="../../devops/docker-ops.html">
            
                    
                    docker 操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.3" data-path="../../devops/docker-compose.html">
            
                <a href="../../devops/docker-compose.html">
            
                    
                    docker compose
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.4" data-path="../../devops/docker-nginx.html">
            
                <a href="../../devops/docker-nginx.html">
            
                    
                    docker + nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.5" data-path="../../devops/docker-blog.html">
            
                <a href="../../devops/docker-blog.html">
            
                    
                    docker + blog
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.6" data-path="../../devops/docker-resume.html">
            
                <a href="../../devops/docker-resume.html">
            
                    
                    docker + resume
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.7" data-path="../../devops/docker-gitbook.html">
            
                <a href="../../devops/docker-gitbook.html">
            
                    
                    docker + gitbook
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.8" data-path="../../devops/docker-bark.html">
            
                <a href="../../devops/docker-bark.html">
            
                    
                    docker + Bark
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.9" data-path="../../devops/docker-py12306.html">
            
                <a href="../../devops/docker-py12306.html">
            
                    
                    docker + py12306
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.10" data-path="../../devops/docker-mojo-Weixin.html">
            
                <a href="../../devops/docker-mojo-Weixin.html">
            
                    
                    docker + mojo-Weixin
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.11" data-path="../../devops/docker-wechat-work-message-push-go.html">
            
                <a href="../../devops/docker-wechat-work-message-push-go.html">
            
                    
                    docker + wechat-work-message-push-go
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.12" data-path="../../devops/docker-email.html">
            
                <a href="../../devops/docker-email.html">
            
                    
                    docker + email
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.13" data-path="../../devops/docker-mysql.html">
            
                <a href="../../devops/docker-mysql.html">
            
                    
                    docker + mysql
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.14" data-path="../../devops/docker-springboot.html">
            
                <a href="../../devops/docker-springboot.html">
            
                    
                    docker + springboot
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.15" data-path="../../devops/docker-redis.html">
            
                <a href="../../devops/docker-redis.html">
            
                    
                    docker + redis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.16" data-path="../../devops/docker-gogs.html">
            
                <a href="../../devops/docker-gogs.html">
            
                    
                    docker + gogs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.17" data-path="../../devops/docker-gitlab.html">
            
                <a href="../../devops/docker-gitlab.html">
            
                    
                    docker + gitlab
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.18" data-path="../../devops/docker-gitea.html">
            
                <a href="../../devops/docker-gitea.html">
            
                    
                    docker + gitea
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2.19" data-path="../../devops/docker-crawlab.html">
            
                <a href="../../devops/docker-crawlab.html">
            
                    
                    docker + crawlab
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="../../tools/">
            
                <a href="../../tools/">
            
                    
                    工具资源
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.3.1" data-path="../../tools/mac-install-vmware.html">
            
                <a href="../../tools/mac-install-vmware.html">
            
                    
                    给 mac 装个 vmware 虚拟机
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.3.1.1" data-path="../../tools/mac-vmware-install-windows.html">
            
                <a href="../../tools/mac-vmware-install-windows.html">
            
                    
                    给 mac 虚拟机装个 windows
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.1.2" data-path="../../tools/mac-vmware-install-centos.html">
            
                <a href="../../tools/mac-vmware-install-centos.html">
            
                    
                    给 mac 虚拟机装个 centos
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.1.3" data-path="../../tools/mac-vmware-install-ubuntu.html">
            
                <a href="../../tools/mac-vmware-install-ubuntu.html">
            
                    
                    给 mac 虚拟机装个 ubuntu
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3.2" data-path="../../tools/windows-install-vmware.html">
            
                <a href="../../tools/windows-install-vmware.html">
            
                    
                    给 windows 装个 vmware 虚拟机
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.3.2.1" data-path="../../tools/windows-vmware-install-mac.html">
            
                <a href="../../tools/windows-vmware-install-mac.html">
            
                    
                    给 windows 虚拟机装个 mac
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.2.2" data-path="../../tools/windows-vmware-install-windows.html">
            
                <a href="../../tools/windows-vmware-install-windows.html">
            
                    
                    给 windows 虚拟机装个 windows
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.2.3" data-path="../../tools/windows-vmware-install-centos.html">
            
                <a href="../../tools/windows-vmware-install-centos.html">
            
                    
                    给 windows 虚拟机装个 centos
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.2.4" data-path="../../tools/windows-vmware-install-ubuntu.html">
            
                <a href="../../tools/windows-vmware-install-ubuntu.html">
            
                    
                    给 windows 虚拟机装个 ubuntu
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3.3" data-path="../../tools/wechat-history-article-backup.html">
            
                <a href="../../tools/wechat-history-article-backup.html">
            
                    
                    公众号历史文章备份
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.3.3.1" data-path="../../tools/wechat-backup-xuezhimengjishuyizhan.html">
            
                <a href="../../tools/wechat-backup-xuezhimengjishuyizhan.html">
            
                    
                    雪之梦技术驿站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.3.2" data-path="../../tools/wechat-backup-sushengbuhuo.html">
            
                <a href="../../tools/wechat-backup-sushengbuhuo.html">
            
                    
                    苏生不惑
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.3.3" data-path="../../tools/wechat-backup-pythonjishu.html">
            
                <a href="../../tools/wechat-backup-pythonjishu.html">
            
                    
                    Python技术
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.3.4" data-path="../../tools/chrome-extend-learn.html">
            
                <a href="../../tools/chrome-extend-learn.html">
            
                    
                    学会开发专属 chrome 插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3.5" data-path="../../tools/12306-algorithm-web-js.html">
            
                <a href="../../tools/12306-algorithm-web-js.html">
            
                    
                    攻克 12306 前端加密算法
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="../../write/">
            
                <a href="../../write/">
            
                    
                    如何写作
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.4.1" data-path="../../write/markdownOrRichText.html">
            
                <a href="../../write/markdownOrRichText.html">
            
                    
                    markdown 和富文本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.2" data-path="../../write/markdown2richText.html">
            
                <a href="../../write/markdown2richText.html">
            
                    
                    markdown 转富文本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.3" data-path="../../write/static-semi-manual-with-csv.html">
            
                <a href="../../write/static-semi-manual-with-csv.html">
            
                    
                    csv 半手动数据统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.4" data-path="../../write/static-semi-manual-with-js.html">
            
                <a href="../../write/static-semi-manual-with-js.html">
            
                    
                    js 半手动数据统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.5" data-path="../../write/jianshu-optimize-static.html">
            
                <a href="../../write/jianshu-optimize-static.html">
            
                    
                    简述优选文章统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.6" data-path="../../write/mermaid-flow-chart.html">
            
                <a href="../../write/mermaid-flow-chart.html">
            
                    
                    快速上手Mermaid流程图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4.7" data-path="../../write/faq.html">
            
                <a href="../../write/faq.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">读书观感</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../../bigDataWave/">
            
                <a href="../../bigDataWave/">
            
                    
                    大数据浪潮之巅:新技术商业制胜之道
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">程序人生</li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="../../todo/">
            
                <a href="../../todo/">
            
                    
                    待完成清单
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.1.1" data-path="../../todo/yarn-quickstart.html">
            
                <a href="../../todo/yarn-quickstart.html">
            
                    
                    yarn快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.2" data-path="../../todo/gulp-quickstart.html">
            
                <a href="../../todo/gulp-quickstart.html">
            
                    
                    gulp快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.3" data-path="../../todo/nvm-quickstart.html">
            
                <a href="../../todo/nvm-quickstart.html">
            
                    
                    nvm快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.4" data-path="../../todo/lodash-quickstart.html">
            
                <a href="../../todo/lodash-quickstart.html">
            
                    
                    lodash快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.5" data-path="../../todo/regexper-quickstart.html">
            
                <a href="../../todo/regexper-quickstart.html">
            
                    
                    regexper快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.6" data-path="../../todo/sublime-quickstart.html">
            
                <a href="../../todo/sublime-quickstart.html">
            
                    
                    sublime快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.7" data-path="../../todo/github-quickstart.html">
            
                <a href="../../todo/github-quickstart.html">
            
                    
                    github 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.8" data-path="../../todo/svn-quickstart.html">
            
                <a href="../../todo/svn-quickstart.html">
            
                    
                    svn 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.9" data-path="../../todo/java-quickstart.html">
            
                <a href="../../todo/java-quickstart.html">
            
                    
                    java 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.10" data-path="../../todo/mysql-quickstart.html">
            
                <a href="../../todo/mysql-quickstart.html">
            
                    
                    mysql 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.11" data-path="../../todo/maven-quickstart.html">
            
                <a href="../../todo/maven-quickstart.html">
            
                    
                    maven 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.12" data-path="../../todo/tomcat-quickstart.html">
            
                <a href="../../todo/tomcat-quickstart.html">
            
                    
                    tomcat 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.13" data-path="../../todo/gitignore-quickstart.html">
            
                <a href="../../todo/gitignore-quickstart.html">
            
                    
                    gitignore 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.14" data-path="../../todo/gitignore-as.html">
            
                <a href="../../todo/gitignore-as.html">
            
                    
                    android studio 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.15" data-path="../../todo/npm.html">
            
                <a href="../../todo/npm.html">
            
                    
                    npm 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.1.16" data-path="../../todo/nginx.html">
            
                <a href="../../todo/nginx.html">
            
                    
                    nginx 快速入门
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="../../other/">
            
                <a href="../../other/">
            
                    
                    其他
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.2.1" data-path="../../other/dev-env-install.html">
            
                <a href="../../other/dev-env-install.html">
            
                    
                    重装开发环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.2" data-path="../../other/dingtalk-reminder.html">
            
                <a href="../../other/dingtalk-reminder.html">
            
                    
                    钉钉签到提醒
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.3" data-path="../../other/reminder.html">
            
                <a href="../../other/reminder.html">
            
                    
                    倒计时提醒
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.4" data-path="../../other/focus-website.html">
            
                <a href="../../other/focus-website.html">
            
                    
                    关注网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.5" data-path="../../other/transformation.html">
            
                <a href="../../other/transformation.html">
            
                    
                    转型之路
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.6" data-path="../../other/static.html">
            
                <a href="../../other/static.html">
            
                    
                    历史统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.7" data-path="../../other/me.html">
            
                <a href="../../other/me.html">
            
                    
                    关于作者
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2.8" data-path="../../other/donate.html">
            
                <a href="../../other/donate.html">
            
                    
                    捐赠支持
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">开源项目</li>
        
        
    
        <li class="chapter " data-level="7.1" data-path="../../opensource/gitbook/">
            
                <a href="../../opensource/gitbook/">
            
                    
                    gitbook 插件项目
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.1.1" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-official/">
            
                    
                    gitbook-official
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.2" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-mygitalk/">
            
                    
                    gitbook-plugin-mygitalk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.3" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-readmore/">
            
                    
                    gitbook-plugin-readmore
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.4" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-favicon-absolute/">
            
                    
                    gitbook-plugin-favicon-absolute
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.5" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-copyright/">
            
                    
                    gitbook-plugin-copyright
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.6" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-edit-link-plus/">
            
                    
                    gitbook-plugin-edit-link-plus
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.7" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-multilingual-index/">
            
                    
                    gitbook-plugin-multilingual-index
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.8" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-icp/">
            
                    
                    gitbook-plugin-icp
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.9" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-diff/">
            
                    
                    gitbook-plugin-diff
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.10" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-simple-mind-map/">
            
                    
                    gitbook-plugin-simple-mind-map
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.11" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-punctuation-converter/">
            
                    
                    gitbook-plugin-punctuation-converter
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.12" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-baidu-tongji-with-multiple-channel/">
            
                    
                    gitbook-plugin-baidu-tongji-with-multiple-channel
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.1.13" >
            
                <a target="_blank" href="https://xinwuyun.github.io/gitbook-plugin-google-tongji-with-multiple-channel/">
            
                    
                    gitbook-plugin-google-tongji-with-multiple-channel
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="../../opensource/hexo/">
            
                <a href="../../opensource/hexo/">
            
                    
                    hexo 插件项目
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.2.1" >
            
                <a target="_blank" href="https://xinwuyun.github.io/hexo-plugin-gitalk/">
            
                    
                    hexo-plugin-gitalk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.2.2" >
            
                <a target="_blank" href="https://xinwuyun.github.io/hexo-plugin-readmore/">
            
                    
                    hexo-plugin-readmore
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7.3" >
            
                <a target="_blank" href="https://security-plus.github.io/">
            
                    
                    security-plus
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="_blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>

    
    <li>
        &copy 2009-2021 xinwuyun.cn 版权所有 
        
        
            
        
        
            <a href="https://beian.miit.gov.cn/" target="_blank" class="gitbook-link">
                浙ICP备18042346号
            </a>
        
    </li>
    
</ul>

                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >备忘录[译]</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#&#x5907;&#x5FD8;&#x5F55;&#x8BD1;"><b>1. </b>&#x5907;&#x5FD8;&#x5F55;[&#x8BD1;]</a></li><ul><li><span class="title-icon "></span><a href="#&#x521B;&#x5EFA;--create"><b>1.1. </b>&#x521B;&#x5EFA; | Create</a></li><ul><li><span class="title-icon "></span><a href="#&#x514B;&#x9686;&#x4E00;&#x4E2A;&#x5DF2;&#x5B58;&#x5728;&#x7684;&#x4ED3;&#x5E93;--clone-an-existing-repository"><b>1.1.1. </b>&#x514B;&#x9686;&#x4E00;&#x4E2A;&#x5DF2;&#x5B58;&#x5728;&#x7684;&#x4ED3;&#x5E93; | Clone an existing repository</a></li><li><span class="title-icon "></span><a href="#&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x672C;&#x5730;&#x4ED3;&#x5E93;--create-a-new-local-repository"><b>1.1.2. </b>&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x672C;&#x5730;&#x4ED3;&#x5E93; | Create a new local repository</a></li></ul><li><span class="title-icon "></span><a href="#&#x672C;&#x5730;&#x66F4;&#x6539;--local-changes"><b>1.2. </b>&#x672C;&#x5730;&#x66F4;&#x6539; | Local Changes</a></li><ul><li><span class="title-icon "></span><a href="#&#x5DE5;&#x4F5C;&#x76EE;&#x5F55;&#x4E2D;&#x5DF2;&#x66F4;&#x6539;&#x6587;&#x4EF6;--changed-files-in-your-working-directory"><b>1.2.1. </b>&#x5DE5;&#x4F5C;&#x76EE;&#x5F55;&#x4E2D;&#x5DF2;&#x66F4;&#x6539;&#x6587;&#x4EF6; | Changed files in your working directory</a></li><li><span class="title-icon "></span><a href="#&#x5DF2;&#x8FFD;&#x8E2A;&#x6587;&#x4EF6;&#x7684;&#x66F4;&#x6539;--changes-to-tracked-files"><b>1.2.2. </b>&#x5DF2;&#x8FFD;&#x8E2A;&#x6587;&#x4EF6;&#x7684;&#x66F4;&#x6539; | Changes to tracked files</a></li><li><span class="title-icon "></span><a href="#&#x6DFB;&#x52A0;&#x5F53;&#x524D;&#x5168;&#x90E8;&#x66F4;&#x6539;&#x5230;&#x4E0B;&#x6B21;&#x63D0;&#x4EA4;&#x7248;&#x672C;--add-all-current-changes-to-next-commit"><b>1.2.3. </b>&#x6DFB;&#x52A0;&#x5F53;&#x524D;&#x5168;&#x90E8;&#x66F4;&#x6539;&#x5230;&#x4E0B;&#x6B21;&#x63D0;&#x4EA4;&#x7248;&#x672C; | Add all current changes to next commit</a></li><li><span class="title-icon "></span><a href="#&#x6DFB;&#x52A0;&#x6587;&#x4EF6;&#x4E2D;&#x67D0;&#x4E9B;&#x66F4;&#x6539;&#x5230;&#x4E0B;&#x6B21;&#x63D0;&#x4EA4;&#x7248;&#x672C;--add-some-changes-in--to-next-commit"><b>1.2.4. </b>&#x6DFB;&#x52A0;&#x6587;&#x4EF6;&#x4E2D;&#x67D0;&#x4E9B;&#x66F4;&#x6539;&#x5230;&#x4E0B;&#x6B21;&#x63D0;&#x4EA4;&#x7248;&#x672C; | Add some changes in  to next commit</a></li><li><span class="title-icon "></span><a href="#&#x63D0;&#x4EA4;&#x5DF2;&#x8FFD;&#x8E2A;&#x6587;&#x4EF6;&#x7684;&#x5168;&#x90E8;&#x672C;&#x5730;&#x66F4;&#x6539;--commit-all-local-changes-in-tracked-files"><b>1.2.5. </b>&#x63D0;&#x4EA4;&#x5DF2;&#x8FFD;&#x8E2A;&#x6587;&#x4EF6;&#x7684;&#x5168;&#x90E8;&#x672C;&#x5730;&#x66F4;&#x6539; | Commit all local changes in tracked files</a></li><li><span class="title-icon "></span><a href="#&#x63D0;&#x4EA4;&#x4E0A;&#x4E00;&#x6B21;&#x6682;&#x5B58;&#x533A;&#x66F4;&#x6539;--commit-previously-staged-changes"><b>1.2.6. </b>&#x63D0;&#x4EA4;&#x4E0A;&#x4E00;&#x6B21;&#x6682;&#x5B58;&#x533A;&#x66F4;&#x6539; | Commit previously staged changes</a></li><li><span class="title-icon "></span><a href="#&#x66F4;&#x6539;&#x4E0A;&#x6B21;&#x63D0;&#x4EA4;--change-the-last-commit"><b>1.2.7. </b>&#x66F4;&#x6539;&#x4E0A;&#x6B21;&#x63D0;&#x4EA4; | Change the last commit</a></li></ul><li><span class="title-icon "></span><a href="#&#x63D0;&#x4EA4;&#x5386;&#x53F2;--commit-history"><b>1.3. </b>&#x63D0;&#x4EA4;&#x5386;&#x53F2; | Commit history</a></li><ul><li><span class="title-icon "></span><a href="#&#x663E;&#x793A;&#x5168;&#x90E8;&#x63D0;&#x4EA4;&#x4EE5;&#x6700;&#x65B0;&#x7684;&#x5F00;&#x5934;--show-all-commitsstarting-with-newest"><b>1.3.1. </b>&#x663E;&#x793A;&#x5168;&#x90E8;&#x63D0;&#x4EA4;,&#x4EE5;&#x6700;&#x65B0;&#x7684;&#x5F00;&#x5934; | Show all commits,starting with newest</a></li><li><span class="title-icon "></span><a href="#&#x663E;&#x793A;&#x67D0;&#x4E2A;&#x6587;&#x4EF6;&#x4E00;&#x6BB5;&#x65F6;&#x95F4;&#x5185;&#x7684;&#x66F4;&#x6539;--show-changes-over-time-for-a-specific-file"><b>1.3.2. </b>&#x663E;&#x793A;&#x67D0;&#x4E2A;&#x6587;&#x4EF6;&#x4E00;&#x6BB5;&#x65F6;&#x95F4;&#x5185;&#x7684;&#x66F4;&#x6539; | Show changes over time for a specific file</a></li><li><span class="title-icon "></span><a href="#&#x67D0;&#x6587;&#x4EF6;&#x662F;&#x8C01;&#x5728;&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x66F4;&#x6539;&#x4E86;&#x4EC0;&#x4E48;&#x5185;&#x5BB9;--who-changed-what-and-when-in-"><b>1.3.3. </b>&#x67D0;&#x6587;&#x4EF6;&#x662F;&#x8C01;&#x5728;&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x66F4;&#x6539;&#x4E86;&#x4EC0;&#x4E48;&#x5185;&#x5BB9; | Who changed what and when in </a></li></ul><li><span class="title-icon "></span><a href="#&#x5206;&#x652F;&#x548C;&#x6807;&#x7B7E;--branches--tags"><b>1.4. </b>&#x5206;&#x652F;&#x548C;&#x6807;&#x7B7E; | Branches &amp; Tags</a></li><ul><li><span class="title-icon "></span><a href="#&#x5217;&#x51FA;&#x5168;&#x90E8;&#x5DF2;&#x5B58;&#x5728;&#x7684;&#x5206;&#x652F;--list-all-existing-branches"><b>1.4.1. </b>&#x5217;&#x51FA;&#x5168;&#x90E8;&#x5DF2;&#x5B58;&#x5728;&#x7684;&#x5206;&#x652F; | List all existing branches</a></li><li><span class="title-icon "></span><a href="#&#x5207;&#x6362;&#x5230;-head-&#x5206;&#x652F;--switch-head-branch"><b>1.4.2. </b>&#x5207;&#x6362;&#x5230; HEAD &#x5206;&#x652F; | Switch HEAD branch</a></li><li><span class="title-icon "></span><a href="#&#x57FA;&#x4E8E;&#x5F53;&#x524D;-head-&#x521B;&#x5EFA;&#x65B0;&#x5206;&#x652F;--create-a-new-branch-based-on-your-curent-head"><b>1.4.3. </b>&#x57FA;&#x4E8E;&#x5F53;&#x524D; HEAD &#x521B;&#x5EFA;&#x65B0;&#x5206;&#x652F; | Create a new branch based on your curent HEAD</a></li><li><span class="title-icon "></span><a href="#&#x57FA;&#x4E8E;&#x8FDC;&#x7A0B;&#x5206;&#x652F;&#x521B;&#x5EFA;&#x65B0;&#x7684;&#x6B63;&#x5728;&#x8FFD;&#x8E2A;&#x5206;&#x652F;--create-a-new-tracking-branch-based-on-a-remote-branch"><b>1.4.4. </b>&#x57FA;&#x4E8E;&#x8FDC;&#x7A0B;&#x5206;&#x652F;&#x521B;&#x5EFA;&#x65B0;&#x7684;&#x6B63;&#x5728;&#x8FFD;&#x8E2A;&#x5206;&#x652F; | Create a new tracking branch based on a remote branch</a></li><li><span class="title-icon "></span><a href="#&#x5220;&#x9664;&#x4E00;&#x4E2A;&#x672C;&#x5730;&#x5206;&#x652F;--delete-a-local-branch"><b>1.4.5. </b>&#x5220;&#x9664;&#x4E00;&#x4E2A;&#x672C;&#x5730;&#x5206;&#x652F; | Delete a local branch</a></li><li><span class="title-icon "></span><a href="#&#x4E3A;&#x5F53;&#x524D;&#x63D0;&#x4EA4;&#x6253;&#x4E0A;&#x6807;&#x7B7E;--make-the-current-commit-with-a-tag"><b>1.4.6. </b>&#x4E3A;&#x5F53;&#x524D;&#x63D0;&#x4EA4;&#x6253;&#x4E0A;&#x6807;&#x7B7E; | Make the current commit with a tag</a></li></ul><li><span class="title-icon "></span><a href="#&#x66F4;&#x65B0;&#x548C;&#x53D1;&#x5E03;--update--publish"><b>1.5. </b>&#x66F4;&#x65B0;&#x548C;&#x53D1;&#x5E03; | Update &amp; Publish</a></li><ul><li><span class="title-icon "></span><a href="#&#x5217;&#x51FA;&#x5F53;&#x524D;&#x5168;&#x90E8;&#x5DF2;&#x914D;&#x7F6E;&#x7684;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;--list-all-currently-configured-remotes"><b>1.5.1. </b>&#x5217;&#x51FA;&#x5F53;&#x524D;&#x5168;&#x90E8;&#x5DF2;&#x914D;&#x7F6E;&#x7684;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93; | List all currently configured remotes</a></li><li><span class="title-icon "></span><a href="#&#x663E;&#x793A;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4FE1;&#x606F;--show-information-about-a-remote"><b>1.5.2. </b>&#x663E;&#x793A;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4FE1;&#x606F; | Show information about a remote</a></li><li><span class="title-icon "></span><a href="#&#x6DFB;&#x52A0;&#x7684;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;--add-new-remote-repository-named-"><b>1.5.3. </b>&#x6DFB;&#x52A0;&#x7684;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93; | Add new remote repository named </a></li><li><span class="title-icon "></span><a href="#&#x4E0B;&#x8F7D;&#x6765;&#x81EA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684;&#x6240;&#x6709;&#x66F4;&#x6539;&#x4F46;&#x662F;&#x4E0D;&#x5408;&#x5E76;&#x5230;-head--download-all-changes-from--but-dont-integrate-into-head"><b>1.5.4. </b>&#x4E0B;&#x8F7D;&#x6765;&#x81EA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684;&#x6240;&#x6709;&#x66F4;&#x6539;&#x4F46;&#x662F;&#x4E0D;&#x5408;&#x5E76;&#x5230; HEAD | Download all changes from  but don&apos;t integrate into HEAD</a></li><li><span class="title-icon "></span><a href="#&#x4E0B;&#x8F7D;&#x6765;&#x81EA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x6307;&#x5B9A;&#x5206;&#x652F;&#x7684;&#x6240;&#x6709;&#x66F4;&#x6539;&#x5E76;&#x4E14;&#x81EA;&#x52A8;&#x5408;&#x5E76;&#x5230;-head--download-changes-and-directly-mergeintegrate-into-head"><b>1.5.5. </b>&#x4E0B;&#x8F7D;&#x6765;&#x81EA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x6307;&#x5B9A;&#x5206;&#x652F;&#x7684;&#x6240;&#x6709;&#x66F4;&#x6539;&#x5E76;&#x4E14;&#x81EA;&#x52A8;&#x5408;&#x5E76;&#x5230; HEAD | Download changes and directly merge/integrate into HEAD</a></li><li><span class="title-icon "></span><a href="#&#x5728;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0A;&#x53D1;&#x5E03;&#x672C;&#x5730;&#x66F4;&#x6539;--publish-local-changes-on-a-remote"><b>1.5.6. </b>&#x5728;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0A;&#x53D1;&#x5E03;&#x672C;&#x5730;&#x66F4;&#x6539; | Publish local changes on a remote</a></li><li><span class="title-icon "></span><a href="#&#x5728;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0A;&#x5220;&#x9664;&#x5206;&#x652F;--delete-a-branch-on-the-branch"><b>1.5.7. </b>&#x5728;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0A;&#x5220;&#x9664;&#x5206;&#x652F; | Delete a branch on the branch</a></li><li><span class="title-icon "></span><a href="#&#x53D1;&#x5E03;&#x4F60;&#x7684;&#x6807;&#x7B7E;--publish-your-tags"><b>1.5.8. </b>&#x53D1;&#x5E03;&#x4F60;&#x7684;&#x6807;&#x7B7E; | Publish your tags</a></li></ul><li><span class="title-icon "></span><a href="#&#x5408;&#x5E76;&#x548C;&#x53D8;&#x57FA;--merge--rebase"><b>1.6. </b>&#x5408;&#x5E76;&#x548C;&#x53D8;&#x57FA; | MERGE &amp; REBASE</a></li><ul><li><span class="title-icon "></span><a href="#&#x5408;&#x5E76;&#x6307;&#x5B9A;&#x5206;&#x652F;&#x5230;&#x4F60;&#x7684;-head--merge--into-your-current-head"><b>1.6.1. </b>&#x5408;&#x5E76;&#x6307;&#x5B9A;&#x5206;&#x652F;&#x5230;&#x4F60;&#x7684; HEAD | Merge  into your current HEAD</a></li><li><span class="title-icon "></span><a href="#&#x53D8;&#x57FA;&#x5230;&#x5F53;&#x524D;head--rebase-your-current-head-onto-"><b>1.6.2. </b>&#x53D8;&#x57FA;&#x5230;&#x5F53;&#x524D;HEAD | Rebase your current HEAD onto </a></li><li><span class="title-icon "></span><a href="#&#x53D6;&#x6D88;&#x53D8;&#x57FA;--abort-a-rebase"><b>1.6.3. </b>&#x53D6;&#x6D88;&#x53D8;&#x57FA; | Abort a rebase</a></li><li><span class="title-icon "></span><a href="#&#x4F7F;&#x7528;&#x5DF2;&#x914D;&#x7F6E;&#x7684;&#x51B2;&#x7A81;&#x5DE5;&#x5177;&#x53BB;&#x89E3;&#x51B3;&#x51B2;&#x7A81;--use-your-configured-merge-tool-to-solve-conflicts"><b>1.6.4. </b>&#x4F7F;&#x7528;&#x5DF2;&#x914D;&#x7F6E;&#x7684;&#x51B2;&#x7A81;&#x5DE5;&#x5177;&#x53BB;&#x89E3;&#x51B3;&#x51B2;&#x7A81; | Use your configured merge tool to solve conflicts</a></li><li><span class="title-icon "></span><a href="#&#x4F7F;&#x7528;&#x7F16;&#x8F91;&#x5668;&#x624B;&#x5DE5;&#x89E3;&#x51B3;&#x51B2;&#x7A81;&#x7136;&#x540E;&#x89E3;&#x51B3;&#x4E4B;&#x540E;&#x6807;&#x8BB0;&#x6587;&#x4EF6;&#x5DF2;&#x89E3;&#x51B3;&#x51B2;&#x7A81;--use-your-editor-to-manually-solve-conflicts-and-after-resolving-mark-file-as-resolved"><b>1.6.5. </b>&#x4F7F;&#x7528;&#x7F16;&#x8F91;&#x5668;&#x624B;&#x5DE5;&#x89E3;&#x51B3;&#x51B2;&#x7A81;&#x7136;&#x540E;(&#x89E3;&#x51B3;&#x4E4B;&#x540E;)&#x6807;&#x8BB0;&#x6587;&#x4EF6;&#x5DF2;&#x89E3;&#x51B3;&#x51B2;&#x7A81; | Use your editor to manually solve conflicts and (after resolving) mark file as resolved</a></li></ul><li><span class="title-icon "></span><a href="#&#x64A4;&#x9500;--undo"><b>1.7. </b>&#x64A4;&#x9500; | UNDO</a></li><ul><li><span class="title-icon "></span><a href="#&#x4E22;&#x5F03;&#x5DE5;&#x4F5C;&#x533A;&#x5168;&#x90E8;&#x66F4;&#x6539;--discard-all-local-changes-in-your-working-directory"><b>1.7.1. </b>&#x4E22;&#x5F03;&#x5DE5;&#x4F5C;&#x533A;&#x5168;&#x90E8;&#x66F4;&#x6539; | Discard all local changes in your working directory</a></li><li><span class="title-icon "></span><a href="#&#x4E22;&#x5F03;&#x6307;&#x5B9A;&#x6587;&#x4EF6;&#x7684;&#x672C;&#x5730;&#x66F4;&#x6539;--discard-local-changes-in-a-specific-file"><b>1.7.2. </b>&#x4E22;&#x5F03;&#x6307;&#x5B9A;&#x6587;&#x4EF6;&#x7684;&#x672C;&#x5730;&#x66F4;&#x6539; | Discard local changes in a specific file</a></li><li><span class="title-icon "></span><a href="#&#x62B5;&#x6D88;&#x4E00;&#x4E2A;&#x63D0;&#x4EA4;&#x901A;&#x8FC7;&#x4EA7;&#x751F;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x76F8;&#x53CD;&#x7684;&#x63D0;&#x4EA4;--revert-a-commit-by-producing-a-new-commit-with-contrary-changes"><b>1.7.3. </b>&#x62B5;&#x6D88;&#x4E00;&#x4E2A;&#x63D0;&#x4EA4;(&#x901A;&#x8FC7;&#x4EA7;&#x751F;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x76F8;&#x53CD;&#x7684;&#x63D0;&#x4EA4;) | Revert a commit (by producing a new commit with contrary changes)</a></li><li><span class="title-icon "></span><a href="#&#x91CD;&#x7F6E;&#x5F53;&#x524D;-head-&#x6307;&#x9488;&#x5230;&#x4E0A;&#x4E00;&#x4E2A;&#x63D0;&#x4EA4;&#x7136;&#x540E;&#x4E22;&#x5F03;&#x81EA;&#x90A3;&#x4EE5;&#x540E;&#x7684;&#x5168;&#x90E8;&#x66F4;&#x6539;--reset-your-head-pointer-to-a-previous-commit--and-discard-all-changes-since-then"><b>1.7.4. </b>&#x91CD;&#x7F6E;&#x5F53;&#x524D; HEAD &#x6307;&#x9488;&#x5230;&#x4E0A;&#x4E00;&#x4E2A;&#x63D0;&#x4EA4;...&#x7136;&#x540E;&#x4E22;&#x5F03;&#x81EA;&#x90A3;&#x4EE5;&#x540E;&#x7684;&#x5168;&#x90E8;&#x66F4;&#x6539; | Reset your HEAD pointer to a previous commit ... and discard all changes since then</a></li><li><span class="title-icon "></span><a href="#&#x7136;&#x540E;&#x4F5C;&#x4E3A;&#x672A;&#x7F13;&#x5B58;&#x66F4;&#x6539;&#x4FDD;&#x5B58;&#x5168;&#x90E8;&#x66F4;&#x6539;---and-preserve-all-changes-as-unstaged-change"><b>1.7.5. </b>...&#x7136;&#x540E;&#x4F5C;&#x4E3A;&#x672A;&#x7F13;&#x5B58;&#x66F4;&#x6539;&#x4FDD;&#x5B58;&#x5168;&#x90E8;&#x66F4;&#x6539; | ... and preserve all changes as unstaged change</a></li><li><span class="title-icon "></span><a href="#&#x7136;&#x540E;&#x4FDD;&#x5B58;&#x672A;&#x63D0;&#x4EA4;&#x7684;&#x672C;&#x5730;&#x66F4;&#x6539;---and-preserve-all-changes-as-unstaged-change"><b>1.7.6. </b>...&#x7136;&#x540E;&#x4FDD;&#x5B58;&#x672A;&#x63D0;&#x4EA4;&#x7684;&#x672C;&#x5730;&#x66F4;&#x6539; | ... and preserve all changes as unstaged change</a></li></ul><li><span class="title-icon "></span><a href="#&#x5EFA;&#x8BAE;--suggestion"><b>1.8. </b>&#x5EFA;&#x8BAE; | SUGGESTION</a></li><ul><li><span class="title-icon "></span><a href="#&#x63D0;&#x4EA4;&#x76F8;&#x5173;&#x66F4;&#x6539;--commit-related-changes"><b>1.8.1. </b>&#x63D0;&#x4EA4;&#x76F8;&#x5173;&#x66F4;&#x6539; | COMMIT RELATED CHANGES</a></li><li><span class="title-icon "></span><a href="#&#x7ECF;&#x5E38;&#x63D0;&#x4EA4;--commit-often"><b>1.8.2. </b>&#x7ECF;&#x5E38;&#x63D0;&#x4EA4; | COMMIT OFTEN</a></li><li><span class="title-icon "></span><a href="#&#x4E0D;&#x8981;&#x63D0;&#x4EA4;&#x672A;&#x5B8C;&#x6210;&#x5DE5;&#x4F5C;--dont-commit-half-done-work"><b>1.8.3. </b>&#x4E0D;&#x8981;&#x63D0;&#x4EA4;&#x672A;&#x5B8C;&#x6210;&#x5DE5;&#x4F5C; | DON&apos;T COMMIT HALF-DONE WORK</a></li><li><span class="title-icon "></span><a href="#&#x63D0;&#x4EA4;&#x524D;&#x6D4B;&#x8BD5;&#x4EE3;&#x7801;--test-code-before-you-commit"><b>1.8.4. </b>&#x63D0;&#x4EA4;&#x524D;&#x6D4B;&#x8BD5;&#x4EE3;&#x7801; | TEST CODE BEFORE YOU COMMIT</a></li><li><span class="title-icon "></span><a href="#&#x7F16;&#x5199;&#x4EE3;&#x7801;&#x63D0;&#x4EA4;&#x4FE1;&#x606F;--write-code-commit-message"><b>1.8.5. </b>&#x7F16;&#x5199;&#x4EE3;&#x7801;&#x63D0;&#x4EA4;&#x4FE1;&#x606F; | WRITE CODE COMMIT MESSAGE</a></li><li><span class="title-icon "></span><a href="#&#x7248;&#x672C;&#x63A7;&#x5236;&#x4E0D;&#x662F;&#x4E00;&#x4E2A;&#x5907;&#x4EFD;&#x7CFB;&#x7EDF;--version-control-is-not-a-backup-system"><b>1.8.6. </b>&#x7248;&#x672C;&#x63A7;&#x5236;&#x4E0D;&#x662F;&#x4E00;&#x4E2A;&#x5907;&#x4EFD;&#x7CFB;&#x7EDF; | VERSION CONTROL IS NOT A BACKUP SYSTEM</a></li><li><span class="title-icon "></span><a href="#&#x5229;&#x7528;&#x5206;&#x652F;--use-branches"><b>1.8.7. </b>&#x5229;&#x7528;&#x5206;&#x652F; | USE BRANCHES</a></li><li><span class="title-icon "></span><a href="#&#x8BA4;&#x540C;&#x5DE5;&#x4F5C;&#x6D41;--agree-on-a-workflow"><b>1.8.8. </b>&#x8BA4;&#x540C;&#x5DE5;&#x4F5C;&#x6D41; | AGREE ON A WORKFLOW</a></li><li><span class="title-icon "></span><a href="#&#x5E2E;&#x52A9;&#x548C;&#x6587;&#x6863;--help--documentation"><b>1.8.9. </b>&#x5E2E;&#x52A9;&#x548C;&#x6587;&#x6863; | HELP &amp; DOCUMENTATION</a></li><li><span class="title-icon "></span><a href="#&#x514D;&#x8D39;&#x5728;&#x7EBF;&#x8D44;&#x6E90;--free-oneline-resources"><b>1.8.10. </b>&#x514D;&#x8D39;&#x5728;&#x7EBF;&#x8D44;&#x6E90; | FREE ONELINE RESOURCES</a></li></ul></ul></ul></div><a href="#&#x5907;&#x5FD8;&#x5F55;&#x8BD1;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="&#x5907;&#x5FD8;&#x5F55;&#x8BD1;"><a name="&#x5907;&#x5FD8;&#x5F55;&#x8BD1;" class="anchor-navigation-ex-anchor" href="#&#x5907;&#x5FD8;&#x5F55;&#x8BD1;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x5907;&#x5FD8;&#x5F55;[&#x8BD1;]</h1>
<h2 id="&#x521B;&#x5EFA;--create"><a name="&#x521B;&#x5EFA;--create" class="anchor-navigation-ex-anchor" href="#&#x521B;&#x5EFA;--create"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. &#x521B;&#x5EFA; | Create</h2>
<h3 id="&#x514B;&#x9686;&#x4E00;&#x4E2A;&#x5DF2;&#x5B58;&#x5728;&#x7684;&#x4ED3;&#x5E93;--clone-an-existing-repository"><a name="&#x514B;&#x9686;&#x4E00;&#x4E2A;&#x5DF2;&#x5B58;&#x5728;&#x7684;&#x4ED3;&#x5E93;--clone-an-existing-repository" class="anchor-navigation-ex-anchor" href="#&#x514B;&#x9686;&#x4E00;&#x4E2A;&#x5DF2;&#x5B58;&#x5728;&#x7684;&#x4ED3;&#x5E93;--clone-an-existing-repository"><i class="fa fa-link" aria-hidden="true"></i></a>1.1.1. &#x514B;&#x9686;&#x4E00;&#x4E2A;&#x5DF2;&#x5B58;&#x5728;&#x7684;&#x4ED3;&#x5E93; | Clone an existing repository</h3>
<pre><code>git clone git@github.com:xinwuyun/xinwuyun.github.io.git
</code></pre><h3 id="&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x672C;&#x5730;&#x4ED3;&#x5E93;--create-a-new-local-repository"><a name="&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x672C;&#x5730;&#x4ED3;&#x5E93;--create-a-new-local-repository" class="anchor-navigation-ex-anchor" href="#&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x672C;&#x5730;&#x4ED3;&#x5E93;--create-a-new-local-repository"><i class="fa fa-link" aria-hidden="true"></i></a>1.1.2. &#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x672C;&#x5730;&#x4ED3;&#x5E93; | Create a new local repository</h3>
<pre><code>git init
</code></pre><h2 id="&#x672C;&#x5730;&#x66F4;&#x6539;--local-changes"><a name="&#x672C;&#x5730;&#x66F4;&#x6539;--local-changes" class="anchor-navigation-ex-anchor" href="#&#x672C;&#x5730;&#x66F4;&#x6539;--local-changes"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. &#x672C;&#x5730;&#x66F4;&#x6539; | Local Changes</h2>
<h3 id="&#x5DE5;&#x4F5C;&#x76EE;&#x5F55;&#x4E2D;&#x5DF2;&#x66F4;&#x6539;&#x6587;&#x4EF6;--changed-files-in-your-working-directory"><a name="&#x5DE5;&#x4F5C;&#x76EE;&#x5F55;&#x4E2D;&#x5DF2;&#x66F4;&#x6539;&#x6587;&#x4EF6;--changed-files-in-your-working-directory" class="anchor-navigation-ex-anchor" href="#&#x5DE5;&#x4F5C;&#x76EE;&#x5F55;&#x4E2D;&#x5DF2;&#x66F4;&#x6539;&#x6587;&#x4EF6;--changed-files-in-your-working-directory"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.1. &#x5DE5;&#x4F5C;&#x76EE;&#x5F55;&#x4E2D;&#x5DF2;&#x66F4;&#x6539;&#x6587;&#x4EF6; | Changed files in your working directory</h3>
<pre><code>git status
</code></pre><h3 id="&#x5DF2;&#x8FFD;&#x8E2A;&#x6587;&#x4EF6;&#x7684;&#x66F4;&#x6539;--changes-to-tracked-files"><a name="&#x5DF2;&#x8FFD;&#x8E2A;&#x6587;&#x4EF6;&#x7684;&#x66F4;&#x6539;--changes-to-tracked-files" class="anchor-navigation-ex-anchor" href="#&#x5DF2;&#x8FFD;&#x8E2A;&#x6587;&#x4EF6;&#x7684;&#x66F4;&#x6539;--changes-to-tracked-files"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.2. &#x5DF2;&#x8FFD;&#x8E2A;&#x6587;&#x4EF6;&#x7684;&#x66F4;&#x6539; | Changes to tracked files</h3>
<pre><code>git diff
</code></pre><h3 id="&#x6DFB;&#x52A0;&#x5F53;&#x524D;&#x5168;&#x90E8;&#x66F4;&#x6539;&#x5230;&#x4E0B;&#x6B21;&#x63D0;&#x4EA4;&#x7248;&#x672C;--add-all-current-changes-to-next-commit"><a name="&#x6DFB;&#x52A0;&#x5F53;&#x524D;&#x5168;&#x90E8;&#x66F4;&#x6539;&#x5230;&#x4E0B;&#x6B21;&#x63D0;&#x4EA4;&#x7248;&#x672C;--add-all-current-changes-to-next-commit" class="anchor-navigation-ex-anchor" href="#&#x6DFB;&#x52A0;&#x5F53;&#x524D;&#x5168;&#x90E8;&#x66F4;&#x6539;&#x5230;&#x4E0B;&#x6B21;&#x63D0;&#x4EA4;&#x7248;&#x672C;--add-all-current-changes-to-next-commit"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.3. &#x6DFB;&#x52A0;&#x5F53;&#x524D;&#x5168;&#x90E8;&#x66F4;&#x6539;&#x5230;&#x4E0B;&#x6B21;&#x63D0;&#x4EA4;&#x7248;&#x672C; | Add all current changes to next commit</h3>
<pre><code>git add .
</code></pre><h3 id="&#x6DFB;&#x52A0;&#x6587;&#x4EF6;&#x4E2D;&#x67D0;&#x4E9B;&#x66F4;&#x6539;&#x5230;&#x4E0B;&#x6B21;&#x63D0;&#x4EA4;&#x7248;&#x672C;--add-some-changes-in--to-next-commit"><a name="&#x6DFB;&#x52A0;&#x6587;&#x4EF6;&#x4E2D;&#x67D0;&#x4E9B;&#x66F4;&#x6539;&#x5230;&#x4E0B;&#x6B21;&#x63D0;&#x4EA4;&#x7248;&#x672C;--add-some-changes-in--to-next-commit" class="anchor-navigation-ex-anchor" href="#&#x6DFB;&#x52A0;&#x6587;&#x4EF6;&#x4E2D;&#x67D0;&#x4E9B;&#x66F4;&#x6539;&#x5230;&#x4E0B;&#x6B21;&#x63D0;&#x4EA4;&#x7248;&#x672C;--add-some-changes-in--to-next-commit"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.4. &#x6DFB;&#x52A0;&#x6587;&#x4EF6;&#x4E2D;&#x67D0;&#x4E9B;&#x66F4;&#x6539;&#x5230;&#x4E0B;&#x6B21;&#x63D0;&#x4EA4;&#x7248;&#x672C; | Add some changes in  to next commit</h3>
<pre><code>git add -p &lt;file&gt;
</code></pre><h3 id="&#x63D0;&#x4EA4;&#x5DF2;&#x8FFD;&#x8E2A;&#x6587;&#x4EF6;&#x7684;&#x5168;&#x90E8;&#x672C;&#x5730;&#x66F4;&#x6539;--commit-all-local-changes-in-tracked-files"><a name="&#x63D0;&#x4EA4;&#x5DF2;&#x8FFD;&#x8E2A;&#x6587;&#x4EF6;&#x7684;&#x5168;&#x90E8;&#x672C;&#x5730;&#x66F4;&#x6539;--commit-all-local-changes-in-tracked-files" class="anchor-navigation-ex-anchor" href="#&#x63D0;&#x4EA4;&#x5DF2;&#x8FFD;&#x8E2A;&#x6587;&#x4EF6;&#x7684;&#x5168;&#x90E8;&#x672C;&#x5730;&#x66F4;&#x6539;--commit-all-local-changes-in-tracked-files"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.5. &#x63D0;&#x4EA4;&#x5DF2;&#x8FFD;&#x8E2A;&#x6587;&#x4EF6;&#x7684;&#x5168;&#x90E8;&#x672C;&#x5730;&#x66F4;&#x6539; | Commit all local changes in tracked files</h3>
<pre><code>git commit -a
</code></pre><h3 id="&#x63D0;&#x4EA4;&#x4E0A;&#x4E00;&#x6B21;&#x6682;&#x5B58;&#x533A;&#x66F4;&#x6539;--commit-previously-staged-changes"><a name="&#x63D0;&#x4EA4;&#x4E0A;&#x4E00;&#x6B21;&#x6682;&#x5B58;&#x533A;&#x66F4;&#x6539;--commit-previously-staged-changes" class="anchor-navigation-ex-anchor" href="#&#x63D0;&#x4EA4;&#x4E0A;&#x4E00;&#x6B21;&#x6682;&#x5B58;&#x533A;&#x66F4;&#x6539;--commit-previously-staged-changes"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.6. &#x63D0;&#x4EA4;&#x4E0A;&#x4E00;&#x6B21;&#x6682;&#x5B58;&#x533A;&#x66F4;&#x6539; | Commit previously staged changes</h3>
<pre><code>git commit
</code></pre><h3 id="&#x66F4;&#x6539;&#x4E0A;&#x6B21;&#x63D0;&#x4EA4;--change-the-last-commit"><a name="&#x66F4;&#x6539;&#x4E0A;&#x6B21;&#x63D0;&#x4EA4;--change-the-last-commit" class="anchor-navigation-ex-anchor" href="#&#x66F4;&#x6539;&#x4E0A;&#x6B21;&#x63D0;&#x4EA4;--change-the-last-commit"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.7. &#x66F4;&#x6539;&#x4E0A;&#x6B21;&#x63D0;&#x4EA4; | Change the last commit</h3>
<blockquote>
<p>&#x6CA1;&#x6709;&#x66F4;&#x6539;&#x5DF2;&#x53D1;&#x5E03;&#x7684;&#x63D0;&#x4EA4; | Don&apos;t amend publishd commits!</p>
</blockquote>
<pre><code>git commit --amend
</code></pre><h2 id="&#x63D0;&#x4EA4;&#x5386;&#x53F2;--commit-history"><a name="&#x63D0;&#x4EA4;&#x5386;&#x53F2;--commit-history" class="anchor-navigation-ex-anchor" href="#&#x63D0;&#x4EA4;&#x5386;&#x53F2;--commit-history"><i class="fa fa-link" aria-hidden="true"></i></a>1.3. &#x63D0;&#x4EA4;&#x5386;&#x53F2; | Commit history</h2>
<h3 id="&#x663E;&#x793A;&#x5168;&#x90E8;&#x63D0;&#x4EA4;&#x4EE5;&#x6700;&#x65B0;&#x7684;&#x5F00;&#x5934;--show-all-commitsstarting-with-newest"><a name="&#x663E;&#x793A;&#x5168;&#x90E8;&#x63D0;&#x4EA4;&#x4EE5;&#x6700;&#x65B0;&#x7684;&#x5F00;&#x5934;--show-all-commitsstarting-with-newest" class="anchor-navigation-ex-anchor" href="#&#x663E;&#x793A;&#x5168;&#x90E8;&#x63D0;&#x4EA4;&#x4EE5;&#x6700;&#x65B0;&#x7684;&#x5F00;&#x5934;--show-all-commitsstarting-with-newest"><i class="fa fa-link" aria-hidden="true"></i></a>1.3.1. &#x663E;&#x793A;&#x5168;&#x90E8;&#x63D0;&#x4EA4;,&#x4EE5;&#x6700;&#x65B0;&#x7684;&#x5F00;&#x5934; | Show all commits,starting with newest</h3>
<pre><code>git log
</code></pre><h3 id="&#x663E;&#x793A;&#x67D0;&#x4E2A;&#x6587;&#x4EF6;&#x4E00;&#x6BB5;&#x65F6;&#x95F4;&#x5185;&#x7684;&#x66F4;&#x6539;--show-changes-over-time-for-a-specific-file"><a name="&#x663E;&#x793A;&#x67D0;&#x4E2A;&#x6587;&#x4EF6;&#x4E00;&#x6BB5;&#x65F6;&#x95F4;&#x5185;&#x7684;&#x66F4;&#x6539;--show-changes-over-time-for-a-specific-file" class="anchor-navigation-ex-anchor" href="#&#x663E;&#x793A;&#x67D0;&#x4E2A;&#x6587;&#x4EF6;&#x4E00;&#x6BB5;&#x65F6;&#x95F4;&#x5185;&#x7684;&#x66F4;&#x6539;--show-changes-over-time-for-a-specific-file"><i class="fa fa-link" aria-hidden="true"></i></a>1.3.2. &#x663E;&#x793A;&#x67D0;&#x4E2A;&#x6587;&#x4EF6;&#x4E00;&#x6BB5;&#x65F6;&#x95F4;&#x5185;&#x7684;&#x66F4;&#x6539; | Show changes over time for a specific file</h3>
<pre><code>git log -p &lt;file&gt;
</code></pre><h3 id="&#x67D0;&#x6587;&#x4EF6;&#x662F;&#x8C01;&#x5728;&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x66F4;&#x6539;&#x4E86;&#x4EC0;&#x4E48;&#x5185;&#x5BB9;--who-changed-what-and-when-in-"><a name="&#x67D0;&#x6587;&#x4EF6;&#x662F;&#x8C01;&#x5728;&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x66F4;&#x6539;&#x4E86;&#x4EC0;&#x4E48;&#x5185;&#x5BB9;--who-changed-what-and-when-in-" class="anchor-navigation-ex-anchor" href="#&#x67D0;&#x6587;&#x4EF6;&#x662F;&#x8C01;&#x5728;&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x66F4;&#x6539;&#x4E86;&#x4EC0;&#x4E48;&#x5185;&#x5BB9;--who-changed-what-and-when-in-"><i class="fa fa-link" aria-hidden="true"></i></a>1.3.3. &#x67D0;&#x6587;&#x4EF6;&#x662F;&#x8C01;&#x5728;&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x66F4;&#x6539;&#x4E86;&#x4EC0;&#x4E48;&#x5185;&#x5BB9; | Who changed what and when in </h3>
<pre><code>git blame &lt;file&gt;
</code></pre><h2 id="&#x5206;&#x652F;&#x548C;&#x6807;&#x7B7E;--branches--tags"><a name="&#x5206;&#x652F;&#x548C;&#x6807;&#x7B7E;--branches--tags" class="anchor-navigation-ex-anchor" href="#&#x5206;&#x652F;&#x548C;&#x6807;&#x7B7E;--branches--tags"><i class="fa fa-link" aria-hidden="true"></i></a>1.4. &#x5206;&#x652F;&#x548C;&#x6807;&#x7B7E; | Branches &amp; Tags</h2>
<h3 id="&#x5217;&#x51FA;&#x5168;&#x90E8;&#x5DF2;&#x5B58;&#x5728;&#x7684;&#x5206;&#x652F;--list-all-existing-branches"><a name="&#x5217;&#x51FA;&#x5168;&#x90E8;&#x5DF2;&#x5B58;&#x5728;&#x7684;&#x5206;&#x652F;--list-all-existing-branches" class="anchor-navigation-ex-anchor" href="#&#x5217;&#x51FA;&#x5168;&#x90E8;&#x5DF2;&#x5B58;&#x5728;&#x7684;&#x5206;&#x652F;--list-all-existing-branches"><i class="fa fa-link" aria-hidden="true"></i></a>1.4.1. &#x5217;&#x51FA;&#x5168;&#x90E8;&#x5DF2;&#x5B58;&#x5728;&#x7684;&#x5206;&#x652F; | List all existing branches</h3>
<pre><code>git branch -av
</code></pre><h3 id="&#x5207;&#x6362;&#x5230;-head-&#x5206;&#x652F;--switch-head-branch"><a name="&#x5207;&#x6362;&#x5230;-head-&#x5206;&#x652F;--switch-head-branch" class="anchor-navigation-ex-anchor" href="#&#x5207;&#x6362;&#x5230;-head-&#x5206;&#x652F;--switch-head-branch"><i class="fa fa-link" aria-hidden="true"></i></a>1.4.2. &#x5207;&#x6362;&#x5230; HEAD &#x5206;&#x652F; | Switch HEAD branch</h3>
<pre><code>git checkout &lt;branch&gt;
</code></pre><h3 id="&#x57FA;&#x4E8E;&#x5F53;&#x524D;-head-&#x521B;&#x5EFA;&#x65B0;&#x5206;&#x652F;--create-a-new-branch-based-on-your-curent-head"><a name="&#x57FA;&#x4E8E;&#x5F53;&#x524D;-head-&#x521B;&#x5EFA;&#x65B0;&#x5206;&#x652F;--create-a-new-branch-based-on-your-curent-head" class="anchor-navigation-ex-anchor" href="#&#x57FA;&#x4E8E;&#x5F53;&#x524D;-head-&#x521B;&#x5EFA;&#x65B0;&#x5206;&#x652F;--create-a-new-branch-based-on-your-curent-head"><i class="fa fa-link" aria-hidden="true"></i></a>1.4.3. &#x57FA;&#x4E8E;&#x5F53;&#x524D; HEAD &#x521B;&#x5EFA;&#x65B0;&#x5206;&#x652F; | Create a new branch based on your curent HEAD</h3>
<pre><code>git branch &lt;new-branch&gt;
</code></pre><h3 id="&#x57FA;&#x4E8E;&#x8FDC;&#x7A0B;&#x5206;&#x652F;&#x521B;&#x5EFA;&#x65B0;&#x7684;&#x6B63;&#x5728;&#x8FFD;&#x8E2A;&#x5206;&#x652F;--create-a-new-tracking-branch-based-on-a-remote-branch"><a name="&#x57FA;&#x4E8E;&#x8FDC;&#x7A0B;&#x5206;&#x652F;&#x521B;&#x5EFA;&#x65B0;&#x7684;&#x6B63;&#x5728;&#x8FFD;&#x8E2A;&#x5206;&#x652F;--create-a-new-tracking-branch-based-on-a-remote-branch" class="anchor-navigation-ex-anchor" href="#&#x57FA;&#x4E8E;&#x8FDC;&#x7A0B;&#x5206;&#x652F;&#x521B;&#x5EFA;&#x65B0;&#x7684;&#x6B63;&#x5728;&#x8FFD;&#x8E2A;&#x5206;&#x652F;--create-a-new-tracking-branch-based-on-a-remote-branch"><i class="fa fa-link" aria-hidden="true"></i></a>1.4.4. &#x57FA;&#x4E8E;&#x8FDC;&#x7A0B;&#x5206;&#x652F;&#x521B;&#x5EFA;&#x65B0;&#x7684;&#x6B63;&#x5728;&#x8FFD;&#x8E2A;&#x5206;&#x652F; | Create a new tracking branch based on a remote branch</h3>
<pre><code>git checkout --track &lt;remote/branch&gt;
</code></pre><h3 id="&#x5220;&#x9664;&#x4E00;&#x4E2A;&#x672C;&#x5730;&#x5206;&#x652F;--delete-a-local-branch"><a name="&#x5220;&#x9664;&#x4E00;&#x4E2A;&#x672C;&#x5730;&#x5206;&#x652F;--delete-a-local-branch" class="anchor-navigation-ex-anchor" href="#&#x5220;&#x9664;&#x4E00;&#x4E2A;&#x672C;&#x5730;&#x5206;&#x652F;--delete-a-local-branch"><i class="fa fa-link" aria-hidden="true"></i></a>1.4.5. &#x5220;&#x9664;&#x4E00;&#x4E2A;&#x672C;&#x5730;&#x5206;&#x652F; | Delete a local branch</h3>
<pre><code>git branch -d &lt;branch&gt;
</code></pre><h3 id="&#x4E3A;&#x5F53;&#x524D;&#x63D0;&#x4EA4;&#x6253;&#x4E0A;&#x6807;&#x7B7E;--make-the-current-commit-with-a-tag"><a name="&#x4E3A;&#x5F53;&#x524D;&#x63D0;&#x4EA4;&#x6253;&#x4E0A;&#x6807;&#x7B7E;--make-the-current-commit-with-a-tag" class="anchor-navigation-ex-anchor" href="#&#x4E3A;&#x5F53;&#x524D;&#x63D0;&#x4EA4;&#x6253;&#x4E0A;&#x6807;&#x7B7E;--make-the-current-commit-with-a-tag"><i class="fa fa-link" aria-hidden="true"></i></a>1.4.6. &#x4E3A;&#x5F53;&#x524D;&#x63D0;&#x4EA4;&#x6253;&#x4E0A;&#x6807;&#x7B7E; | Make the current commit with a tag</h3>
<pre><code>git tag &lt;tag-name&gt;
</code></pre><h2 id="&#x66F4;&#x65B0;&#x548C;&#x53D1;&#x5E03;--update--publish"><a name="&#x66F4;&#x65B0;&#x548C;&#x53D1;&#x5E03;--update--publish" class="anchor-navigation-ex-anchor" href="#&#x66F4;&#x65B0;&#x548C;&#x53D1;&#x5E03;--update--publish"><i class="fa fa-link" aria-hidden="true"></i></a>1.5. &#x66F4;&#x65B0;&#x548C;&#x53D1;&#x5E03; | Update &amp; Publish</h2>
<h3 id="&#x5217;&#x51FA;&#x5F53;&#x524D;&#x5168;&#x90E8;&#x5DF2;&#x914D;&#x7F6E;&#x7684;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;--list-all-currently-configured-remotes"><a name="&#x5217;&#x51FA;&#x5F53;&#x524D;&#x5168;&#x90E8;&#x5DF2;&#x914D;&#x7F6E;&#x7684;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;--list-all-currently-configured-remotes" class="anchor-navigation-ex-anchor" href="#&#x5217;&#x51FA;&#x5F53;&#x524D;&#x5168;&#x90E8;&#x5DF2;&#x914D;&#x7F6E;&#x7684;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;--list-all-currently-configured-remotes"><i class="fa fa-link" aria-hidden="true"></i></a>1.5.1. &#x5217;&#x51FA;&#x5F53;&#x524D;&#x5168;&#x90E8;&#x5DF2;&#x914D;&#x7F6E;&#x7684;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93; | List all currently configured remotes</h3>
<pre><code>git remote -v
</code></pre><h3 id="&#x663E;&#x793A;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4FE1;&#x606F;--show-information-about-a-remote"><a name="&#x663E;&#x793A;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4FE1;&#x606F;--show-information-about-a-remote" class="anchor-navigation-ex-anchor" href="#&#x663E;&#x793A;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4FE1;&#x606F;--show-information-about-a-remote"><i class="fa fa-link" aria-hidden="true"></i></a>1.5.2. &#x663E;&#x793A;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4FE1;&#x606F; | Show information about a remote</h3>
<pre><code>git remote show &lt;remote&gt;
</code></pre><h3 id="&#x6DFB;&#x52A0;&#x7684;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;--add-new-remote-repository-named-"><a name="&#x6DFB;&#x52A0;&#x7684;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;--add-new-remote-repository-named-" class="anchor-navigation-ex-anchor" href="#&#x6DFB;&#x52A0;&#x7684;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;--add-new-remote-repository-named-"><i class="fa fa-link" aria-hidden="true"></i></a>1.5.3. &#x6DFB;&#x52A0;&#x7684;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93; | Add new remote repository named </h3>
<pre><code>git remote add &lt;shortname&gt; &lt;url&gt;
</code></pre><h3 id="&#x4E0B;&#x8F7D;&#x6765;&#x81EA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684;&#x6240;&#x6709;&#x66F4;&#x6539;&#x4F46;&#x662F;&#x4E0D;&#x5408;&#x5E76;&#x5230;-head--download-all-changes-from--but-dont-integrate-into-head"><a name="&#x4E0B;&#x8F7D;&#x6765;&#x81EA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684;&#x6240;&#x6709;&#x66F4;&#x6539;&#x4F46;&#x662F;&#x4E0D;&#x5408;&#x5E76;&#x5230;-head--download-all-changes-from--but-dont-integrate-into-head" class="anchor-navigation-ex-anchor" href="#&#x4E0B;&#x8F7D;&#x6765;&#x81EA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684;&#x6240;&#x6709;&#x66F4;&#x6539;&#x4F46;&#x662F;&#x4E0D;&#x5408;&#x5E76;&#x5230;-head--download-all-changes-from--but-dont-integrate-into-head"><i class="fa fa-link" aria-hidden="true"></i></a>1.5.4. &#x4E0B;&#x8F7D;&#x6765;&#x81EA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x7684;&#x6240;&#x6709;&#x66F4;&#x6539;&#x4F46;&#x662F;&#x4E0D;&#x5408;&#x5E76;&#x5230; HEAD | Download all changes from  but don&apos;t integrate into HEAD</h3>
<pre><code>git fetch &lt;remote&gt;
</code></pre><h3 id="&#x4E0B;&#x8F7D;&#x6765;&#x81EA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x6307;&#x5B9A;&#x5206;&#x652F;&#x7684;&#x6240;&#x6709;&#x66F4;&#x6539;&#x5E76;&#x4E14;&#x81EA;&#x52A8;&#x5408;&#x5E76;&#x5230;-head--download-changes-and-directly-mergeintegrate-into-head"><a name="&#x4E0B;&#x8F7D;&#x6765;&#x81EA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x6307;&#x5B9A;&#x5206;&#x652F;&#x7684;&#x6240;&#x6709;&#x66F4;&#x6539;&#x5E76;&#x4E14;&#x81EA;&#x52A8;&#x5408;&#x5E76;&#x5230;-head--download-changes-and-directly-mergeintegrate-into-head" class="anchor-navigation-ex-anchor" href="#&#x4E0B;&#x8F7D;&#x6765;&#x81EA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x6307;&#x5B9A;&#x5206;&#x652F;&#x7684;&#x6240;&#x6709;&#x66F4;&#x6539;&#x5E76;&#x4E14;&#x81EA;&#x52A8;&#x5408;&#x5E76;&#x5230;-head--download-changes-and-directly-mergeintegrate-into-head"><i class="fa fa-link" aria-hidden="true"></i></a>1.5.5. &#x4E0B;&#x8F7D;&#x6765;&#x81EA;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x6307;&#x5B9A;&#x5206;&#x652F;&#x7684;&#x6240;&#x6709;&#x66F4;&#x6539;&#x5E76;&#x4E14;&#x81EA;&#x52A8;&#x5408;&#x5E76;&#x5230; HEAD | Download changes and directly merge/integrate into HEAD</h3>
<pre><code>git pull &lt;remote&gt; &lt;branch&gt;
</code></pre><h3 id="&#x5728;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0A;&#x53D1;&#x5E03;&#x672C;&#x5730;&#x66F4;&#x6539;--publish-local-changes-on-a-remote"><a name="&#x5728;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0A;&#x53D1;&#x5E03;&#x672C;&#x5730;&#x66F4;&#x6539;--publish-local-changes-on-a-remote" class="anchor-navigation-ex-anchor" href="#&#x5728;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0A;&#x53D1;&#x5E03;&#x672C;&#x5730;&#x66F4;&#x6539;--publish-local-changes-on-a-remote"><i class="fa fa-link" aria-hidden="true"></i></a>1.5.6. &#x5728;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0A;&#x53D1;&#x5E03;&#x672C;&#x5730;&#x66F4;&#x6539; | Publish local changes on a remote</h3>
<pre><code>git push &lt;remote&gt; &lt;branch&gt;
</code></pre><h3 id="&#x5728;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0A;&#x5220;&#x9664;&#x5206;&#x652F;--delete-a-branch-on-the-branch"><a name="&#x5728;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0A;&#x5220;&#x9664;&#x5206;&#x652F;--delete-a-branch-on-the-branch" class="anchor-navigation-ex-anchor" href="#&#x5728;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0A;&#x5220;&#x9664;&#x5206;&#x652F;--delete-a-branch-on-the-branch"><i class="fa fa-link" aria-hidden="true"></i></a>1.5.7. &#x5728;&#x8FDC;&#x7A0B;&#x4ED3;&#x5E93;&#x4E0A;&#x5220;&#x9664;&#x5206;&#x652F; | Delete a branch on the branch</h3>
<pre><code>git branch -dr &lt;remote/branch&gt;
</code></pre><h3 id="&#x53D1;&#x5E03;&#x4F60;&#x7684;&#x6807;&#x7B7E;--publish-your-tags"><a name="&#x53D1;&#x5E03;&#x4F60;&#x7684;&#x6807;&#x7B7E;--publish-your-tags" class="anchor-navigation-ex-anchor" href="#&#x53D1;&#x5E03;&#x4F60;&#x7684;&#x6807;&#x7B7E;--publish-your-tags"><i class="fa fa-link" aria-hidden="true"></i></a>1.5.8. &#x53D1;&#x5E03;&#x4F60;&#x7684;&#x6807;&#x7B7E; | Publish your tags</h3>
<pre><code>git push --tags
</code></pre><h2 id="&#x5408;&#x5E76;&#x548C;&#x53D8;&#x57FA;--merge--rebase"><a name="&#x5408;&#x5E76;&#x548C;&#x53D8;&#x57FA;--merge--rebase" class="anchor-navigation-ex-anchor" href="#&#x5408;&#x5E76;&#x548C;&#x53D8;&#x57FA;--merge--rebase"><i class="fa fa-link" aria-hidden="true"></i></a>1.6. &#x5408;&#x5E76;&#x548C;&#x53D8;&#x57FA; | MERGE &amp; REBASE</h2>
<h3 id="&#x5408;&#x5E76;&#x6307;&#x5B9A;&#x5206;&#x652F;&#x5230;&#x4F60;&#x7684;-head--merge--into-your-current-head"><a name="&#x5408;&#x5E76;&#x6307;&#x5B9A;&#x5206;&#x652F;&#x5230;&#x4F60;&#x7684;-head--merge--into-your-current-head" class="anchor-navigation-ex-anchor" href="#&#x5408;&#x5E76;&#x6307;&#x5B9A;&#x5206;&#x652F;&#x5230;&#x4F60;&#x7684;-head--merge--into-your-current-head"><i class="fa fa-link" aria-hidden="true"></i></a>1.6.1. &#x5408;&#x5E76;&#x6307;&#x5B9A;&#x5206;&#x652F;&#x5230;&#x4F60;&#x7684; HEAD | Merge  into your current HEAD</h3>
<pre><code>git merge &lt;branch&gt;
</code></pre><h3 id="&#x53D8;&#x57FA;&#x5230;&#x5F53;&#x524D;head--rebase-your-current-head-onto-"><a name="&#x53D8;&#x57FA;&#x5230;&#x5F53;&#x524D;head--rebase-your-current-head-onto-" class="anchor-navigation-ex-anchor" href="#&#x53D8;&#x57FA;&#x5230;&#x5F53;&#x524D;head--rebase-your-current-head-onto-"><i class="fa fa-link" aria-hidden="true"></i></a>1.6.2. &#x53D8;&#x57FA;&#x5230;&#x5F53;&#x524D;HEAD | Rebase your current HEAD onto </h3>
<blockquote>
<p>&#x4E0D;&#x8981;&#x53D8;&#x57FA;&#x5DF2;&#x53D1;&#x5E03;&#x7684;&#x63D0;&#x4EA4; | Don&apos;t rebase published commits!</p>
</blockquote>
<pre><code>git rebase &lt;branch&gt;
</code></pre><h3 id="&#x53D6;&#x6D88;&#x53D8;&#x57FA;--abort-a-rebase"><a name="&#x53D6;&#x6D88;&#x53D8;&#x57FA;--abort-a-rebase" class="anchor-navigation-ex-anchor" href="#&#x53D6;&#x6D88;&#x53D8;&#x57FA;--abort-a-rebase"><i class="fa fa-link" aria-hidden="true"></i></a>1.6.3. &#x53D6;&#x6D88;&#x53D8;&#x57FA; | Abort a rebase</h3>
<pre><code>git rebase --abort
</code></pre><h3 id="&#x4F7F;&#x7528;&#x5DF2;&#x914D;&#x7F6E;&#x7684;&#x51B2;&#x7A81;&#x5DE5;&#x5177;&#x53BB;&#x89E3;&#x51B3;&#x51B2;&#x7A81;--use-your-configured-merge-tool-to-solve-conflicts"><a name="&#x4F7F;&#x7528;&#x5DF2;&#x914D;&#x7F6E;&#x7684;&#x51B2;&#x7A81;&#x5DE5;&#x5177;&#x53BB;&#x89E3;&#x51B3;&#x51B2;&#x7A81;--use-your-configured-merge-tool-to-solve-conflicts" class="anchor-navigation-ex-anchor" href="#&#x4F7F;&#x7528;&#x5DF2;&#x914D;&#x7F6E;&#x7684;&#x51B2;&#x7A81;&#x5DE5;&#x5177;&#x53BB;&#x89E3;&#x51B3;&#x51B2;&#x7A81;--use-your-configured-merge-tool-to-solve-conflicts"><i class="fa fa-link" aria-hidden="true"></i></a>1.6.4. &#x4F7F;&#x7528;&#x5DF2;&#x914D;&#x7F6E;&#x7684;&#x51B2;&#x7A81;&#x5DE5;&#x5177;&#x53BB;&#x89E3;&#x51B3;&#x51B2;&#x7A81; | Use your configured merge tool to solve conflicts</h3>
<pre><code>git mergetool
</code></pre><h3 id="&#x4F7F;&#x7528;&#x7F16;&#x8F91;&#x5668;&#x624B;&#x5DE5;&#x89E3;&#x51B3;&#x51B2;&#x7A81;&#x7136;&#x540E;&#x89E3;&#x51B3;&#x4E4B;&#x540E;&#x6807;&#x8BB0;&#x6587;&#x4EF6;&#x5DF2;&#x89E3;&#x51B3;&#x51B2;&#x7A81;--use-your-editor-to-manually-solve-conflicts-and-after-resolving-mark-file-as-resolved"><a name="&#x4F7F;&#x7528;&#x7F16;&#x8F91;&#x5668;&#x624B;&#x5DE5;&#x89E3;&#x51B3;&#x51B2;&#x7A81;&#x7136;&#x540E;&#x89E3;&#x51B3;&#x4E4B;&#x540E;&#x6807;&#x8BB0;&#x6587;&#x4EF6;&#x5DF2;&#x89E3;&#x51B3;&#x51B2;&#x7A81;--use-your-editor-to-manually-solve-conflicts-and-after-resolving-mark-file-as-resolved" class="anchor-navigation-ex-anchor" href="#&#x4F7F;&#x7528;&#x7F16;&#x8F91;&#x5668;&#x624B;&#x5DE5;&#x89E3;&#x51B3;&#x51B2;&#x7A81;&#x7136;&#x540E;&#x89E3;&#x51B3;&#x4E4B;&#x540E;&#x6807;&#x8BB0;&#x6587;&#x4EF6;&#x5DF2;&#x89E3;&#x51B3;&#x51B2;&#x7A81;--use-your-editor-to-manually-solve-conflicts-and-after-resolving-mark-file-as-resolved"><i class="fa fa-link" aria-hidden="true"></i></a>1.6.5. &#x4F7F;&#x7528;&#x7F16;&#x8F91;&#x5668;&#x624B;&#x5DE5;&#x89E3;&#x51B3;&#x51B2;&#x7A81;&#x7136;&#x540E;(&#x89E3;&#x51B3;&#x4E4B;&#x540E;)&#x6807;&#x8BB0;&#x6587;&#x4EF6;&#x5DF2;&#x89E3;&#x51B3;&#x51B2;&#x7A81; | Use your editor to manually solve conflicts and (after resolving) mark file as resolved</h3>
<pre><code>git add &lt;resolved-file&gt;
git rm &lt;resolved-file&gt;
</code></pre><h2 id="&#x64A4;&#x9500;--undo"><a name="&#x64A4;&#x9500;--undo" class="anchor-navigation-ex-anchor" href="#&#x64A4;&#x9500;--undo"><i class="fa fa-link" aria-hidden="true"></i></a>1.7. &#x64A4;&#x9500; | UNDO</h2>
<h3 id="&#x4E22;&#x5F03;&#x5DE5;&#x4F5C;&#x533A;&#x5168;&#x90E8;&#x66F4;&#x6539;--discard-all-local-changes-in-your-working-directory"><a name="&#x4E22;&#x5F03;&#x5DE5;&#x4F5C;&#x533A;&#x5168;&#x90E8;&#x66F4;&#x6539;--discard-all-local-changes-in-your-working-directory" class="anchor-navigation-ex-anchor" href="#&#x4E22;&#x5F03;&#x5DE5;&#x4F5C;&#x533A;&#x5168;&#x90E8;&#x66F4;&#x6539;--discard-all-local-changes-in-your-working-directory"><i class="fa fa-link" aria-hidden="true"></i></a>1.7.1. &#x4E22;&#x5F03;&#x5DE5;&#x4F5C;&#x533A;&#x5168;&#x90E8;&#x66F4;&#x6539; | Discard all local changes in your working directory</h3>
<pre><code>git reset --hard HEAD
</code></pre><h3 id="&#x4E22;&#x5F03;&#x6307;&#x5B9A;&#x6587;&#x4EF6;&#x7684;&#x672C;&#x5730;&#x66F4;&#x6539;--discard-local-changes-in-a-specific-file"><a name="&#x4E22;&#x5F03;&#x6307;&#x5B9A;&#x6587;&#x4EF6;&#x7684;&#x672C;&#x5730;&#x66F4;&#x6539;--discard-local-changes-in-a-specific-file" class="anchor-navigation-ex-anchor" href="#&#x4E22;&#x5F03;&#x6307;&#x5B9A;&#x6587;&#x4EF6;&#x7684;&#x672C;&#x5730;&#x66F4;&#x6539;--discard-local-changes-in-a-specific-file"><i class="fa fa-link" aria-hidden="true"></i></a>1.7.2. &#x4E22;&#x5F03;&#x6307;&#x5B9A;&#x6587;&#x4EF6;&#x7684;&#x672C;&#x5730;&#x66F4;&#x6539; | Discard local changes in a specific file</h3>
<pre><code>git checkout HEAD &lt;file&gt;
</code></pre><h3 id="&#x62B5;&#x6D88;&#x4E00;&#x4E2A;&#x63D0;&#x4EA4;&#x901A;&#x8FC7;&#x4EA7;&#x751F;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x76F8;&#x53CD;&#x7684;&#x63D0;&#x4EA4;--revert-a-commit-by-producing-a-new-commit-with-contrary-changes"><a name="&#x62B5;&#x6D88;&#x4E00;&#x4E2A;&#x63D0;&#x4EA4;&#x901A;&#x8FC7;&#x4EA7;&#x751F;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x76F8;&#x53CD;&#x7684;&#x63D0;&#x4EA4;--revert-a-commit-by-producing-a-new-commit-with-contrary-changes" class="anchor-navigation-ex-anchor" href="#&#x62B5;&#x6D88;&#x4E00;&#x4E2A;&#x63D0;&#x4EA4;&#x901A;&#x8FC7;&#x4EA7;&#x751F;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x76F8;&#x53CD;&#x7684;&#x63D0;&#x4EA4;--revert-a-commit-by-producing-a-new-commit-with-contrary-changes"><i class="fa fa-link" aria-hidden="true"></i></a>1.7.3. &#x62B5;&#x6D88;&#x4E00;&#x4E2A;&#x63D0;&#x4EA4;(&#x901A;&#x8FC7;&#x4EA7;&#x751F;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x76F8;&#x53CD;&#x7684;&#x63D0;&#x4EA4;) | Revert a commit (by producing a new commit with contrary changes)</h3>
<pre><code>git revert &lt;file&gt;
</code></pre><h3 id="&#x91CD;&#x7F6E;&#x5F53;&#x524D;-head-&#x6307;&#x9488;&#x5230;&#x4E0A;&#x4E00;&#x4E2A;&#x63D0;&#x4EA4;&#x7136;&#x540E;&#x4E22;&#x5F03;&#x81EA;&#x90A3;&#x4EE5;&#x540E;&#x7684;&#x5168;&#x90E8;&#x66F4;&#x6539;--reset-your-head-pointer-to-a-previous-commit--and-discard-all-changes-since-then"><a name="&#x91CD;&#x7F6E;&#x5F53;&#x524D;-head-&#x6307;&#x9488;&#x5230;&#x4E0A;&#x4E00;&#x4E2A;&#x63D0;&#x4EA4;&#x7136;&#x540E;&#x4E22;&#x5F03;&#x81EA;&#x90A3;&#x4EE5;&#x540E;&#x7684;&#x5168;&#x90E8;&#x66F4;&#x6539;--reset-your-head-pointer-to-a-previous-commit--and-discard-all-changes-since-then" class="anchor-navigation-ex-anchor" href="#&#x91CD;&#x7F6E;&#x5F53;&#x524D;-head-&#x6307;&#x9488;&#x5230;&#x4E0A;&#x4E00;&#x4E2A;&#x63D0;&#x4EA4;&#x7136;&#x540E;&#x4E22;&#x5F03;&#x81EA;&#x90A3;&#x4EE5;&#x540E;&#x7684;&#x5168;&#x90E8;&#x66F4;&#x6539;--reset-your-head-pointer-to-a-previous-commit--and-discard-all-changes-since-then"><i class="fa fa-link" aria-hidden="true"></i></a>1.7.4. &#x91CD;&#x7F6E;&#x5F53;&#x524D; HEAD &#x6307;&#x9488;&#x5230;&#x4E0A;&#x4E00;&#x4E2A;&#x63D0;&#x4EA4;...&#x7136;&#x540E;&#x4E22;&#x5F03;&#x81EA;&#x90A3;&#x4EE5;&#x540E;&#x7684;&#x5168;&#x90E8;&#x66F4;&#x6539; | Reset your HEAD pointer to a previous commit ... and discard all changes since then</h3>
<pre><code>git reset --hard &lt;commit&gt;
</code></pre><h3 id="&#x7136;&#x540E;&#x4F5C;&#x4E3A;&#x672A;&#x7F13;&#x5B58;&#x66F4;&#x6539;&#x4FDD;&#x5B58;&#x5168;&#x90E8;&#x66F4;&#x6539;---and-preserve-all-changes-as-unstaged-change"><a name="&#x7136;&#x540E;&#x4F5C;&#x4E3A;&#x672A;&#x7F13;&#x5B58;&#x66F4;&#x6539;&#x4FDD;&#x5B58;&#x5168;&#x90E8;&#x66F4;&#x6539;---and-preserve-all-changes-as-unstaged-change" class="anchor-navigation-ex-anchor" href="#&#x7136;&#x540E;&#x4F5C;&#x4E3A;&#x672A;&#x7F13;&#x5B58;&#x66F4;&#x6539;&#x4FDD;&#x5B58;&#x5168;&#x90E8;&#x66F4;&#x6539;---and-preserve-all-changes-as-unstaged-change"><i class="fa fa-link" aria-hidden="true"></i></a>1.7.5. ...&#x7136;&#x540E;&#x4F5C;&#x4E3A;&#x672A;&#x7F13;&#x5B58;&#x66F4;&#x6539;&#x4FDD;&#x5B58;&#x5168;&#x90E8;&#x66F4;&#x6539; | ... and preserve all changes as unstaged change</h3>
<pre><code>git reset &lt;commit&gt;
</code></pre><h3 id="&#x7136;&#x540E;&#x4FDD;&#x5B58;&#x672A;&#x63D0;&#x4EA4;&#x7684;&#x672C;&#x5730;&#x66F4;&#x6539;---and-preserve-all-changes-as-unstaged-change"><a name="&#x7136;&#x540E;&#x4FDD;&#x5B58;&#x672A;&#x63D0;&#x4EA4;&#x7684;&#x672C;&#x5730;&#x66F4;&#x6539;---and-preserve-all-changes-as-unstaged-change" class="anchor-navigation-ex-anchor" href="#&#x7136;&#x540E;&#x4FDD;&#x5B58;&#x672A;&#x63D0;&#x4EA4;&#x7684;&#x672C;&#x5730;&#x66F4;&#x6539;---and-preserve-all-changes-as-unstaged-change"><i class="fa fa-link" aria-hidden="true"></i></a>1.7.6. ...&#x7136;&#x540E;&#x4FDD;&#x5B58;&#x672A;&#x63D0;&#x4EA4;&#x7684;&#x672C;&#x5730;&#x66F4;&#x6539; | ... and preserve all changes as unstaged change</h3>
<pre><code>git reset --keep &lt;commit&gt;
</code></pre><h2 id="&#x5EFA;&#x8BAE;--suggestion"><a name="&#x5EFA;&#x8BAE;--suggestion" class="anchor-navigation-ex-anchor" href="#&#x5EFA;&#x8BAE;--suggestion"><i class="fa fa-link" aria-hidden="true"></i></a>1.8. &#x5EFA;&#x8BAE; | SUGGESTION</h2>
<h3 id="&#x63D0;&#x4EA4;&#x76F8;&#x5173;&#x66F4;&#x6539;--commit-related-changes"><a name="&#x63D0;&#x4EA4;&#x76F8;&#x5173;&#x66F4;&#x6539;--commit-related-changes" class="anchor-navigation-ex-anchor" href="#&#x63D0;&#x4EA4;&#x76F8;&#x5173;&#x66F4;&#x6539;--commit-related-changes"><i class="fa fa-link" aria-hidden="true"></i></a>1.8.1. &#x63D0;&#x4EA4;&#x76F8;&#x5173;&#x66F4;&#x6539; | COMMIT RELATED CHANGES</h3>
<p>&#x63D0;&#x4EA4;&#x5E94;&#x8BE5;&#x662F;&#x76F8;&#x5173;&#x66F4;&#x6539;&#x7684;&#x5305;&#x88C5;,&#x4F8B;&#x5982;,&#x4FEE;&#x590D;&#x4E24;&#x4E2A;&#x4E0D;&#x540C;&#x7684; bug &#x5E94;&#x8BE5;&#x4EA7;&#x751F;&#x4E24;&#x4E2A;&#x5355;&#x72EC;&#x7684;&#x63D0;&#x4EA4;.
&#x5C0F;&#x7684;&#x63D0;&#x4EA4;&#x8BA9;&#x5176;&#x4ED6;&#x5F00;&#x53D1;&#x8005;&#x66F4;&#x5BB9;&#x6613;&#x7406;&#x89E3;&#x6B64;&#x6B21;&#x66F4;&#x6539;,&#x5E76;&#x4E14;&#x4E07;&#x4E00;&#x51FA;&#x9519;&#x65B9;&#x4FBF;&#x56DE;&#x6EDA;.
&#x5728;&#x6682;&#x5B58;&#x533A;&#x8FD9;&#x7C7B;&#x5DE5;&#x5177;&#x4EE5;&#x53CA;&#x6682;&#x5B58;&#x90E8;&#x5206;&#x6587;&#x4EF6;&#x7684;&#x80FD;&#x529B;&#x4E0B;,<a href="../../GLOSSARY.html#git" class="glossary-term" title="&#x5206;&#x5E03;&#x5F0F;&#x7248;&#x672C;&#x63A7;&#x5236;&#x7CFB;&#x7EDF;,&#x8BE6;&#x60C5;&#x8BF7;&#x53C2;&#x8003; https://xinwuyun.github.io/git/">git</a> &#x5F88;&#x5BB9;&#x6613;&#x521B;&#x5EFA;&#x7EC6;&#x7C92;&#x5EA6;&#x7684;&#x63D0;&#x4EA4;.</p>
<p>A commit should be a wrapper for related changes,
For example,fixing two different bugs should produce two separete commits.
Small commits make it easier for other developers to understand the changes and roll them back if something went wrong.
With tools like the staging area and the ability to stage only parts of a file.
<a href="../../GLOSSARY.html#git" class="glossary-term" title="&#x5206;&#x5E03;&#x5F0F;&#x7248;&#x672C;&#x63A7;&#x5236;&#x7CFB;&#x7EDF;,&#x8BE6;&#x60C5;&#x8BF7;&#x53C2;&#x8003; https://xinwuyun.github.io/git/">Git</a> makes it easy to create very granular commits.</p>
<h3 id="&#x7ECF;&#x5E38;&#x63D0;&#x4EA4;--commit-often"><a name="&#x7ECF;&#x5E38;&#x63D0;&#x4EA4;--commit-often" class="anchor-navigation-ex-anchor" href="#&#x7ECF;&#x5E38;&#x63D0;&#x4EA4;--commit-often"><i class="fa fa-link" aria-hidden="true"></i></a>1.8.2. &#x7ECF;&#x5E38;&#x63D0;&#x4EA4; | COMMIT OFTEN</h3>
<p>&#x7ECF;&#x5E38;&#x63D0;&#x4EA4;&#x4F7F;&#x5F97;&#x4F60;&#x7684;&#x63D0;&#x4EA4;&#x5F88;&#x5C0F;&#x5E76;&#x4E14;&#x6709;&#x52A9;&#x4E8E;&#x4EC5;&#x63D0;&#x4EA4;&#x76F8;&#x5173;&#x66F4;&#x6539;.
&#x6B64;&#x5916;,&#x8FD9;&#x6837;&#x5141;&#x8BB8;&#x4F60;&#x66F4;&#x9891;&#x7E41;&#x5730;&#x548C;&#x5176;&#x4ED6;&#x4EBA;&#x5206;&#x4EAB;&#x4F60;&#x7684;&#x4EE3;&#x7801;,&#x5BF9;&#x4E8E;&#x6BCF;&#x4E2A;&#x4EBA;&#x6765;&#x8BF4;&#x66F4;&#x5BB9;&#x5668;&#x5B9A;&#x671F;&#x5408;&#x5E76;&#x66F4;&#x6539;,&#x907F;&#x514D;&#x4E86;&#x906D;&#x9047;&#x5408;&#x5E76;&#x51B2;&#x7A81;.
,&#x5F88;&#x5C11;&#x7684;&#x5927;&#x63D0;&#x4EA4;,&#x5F88;&#x5C11;&#x5206;&#x4EAB;&#x5B83;&#x4EEC;.&#x76F8;&#x53CD;&#x5F88;&#x96BE;&#x89E3;&#x51B3;&#x51B2;&#x7A81;.</p>
<p>Commiting often keeps your commits small and again helps you commit only related changes.
Moreover,it allows you to share your code more frequently with others.
That way it&apos;s easier for everyone to integrate changes regularly and avoid having merge conflicts.Having few large commits and sharing them rarely.in contrast,makes it hard to solve conflicts.</p>
<h3 id="&#x4E0D;&#x8981;&#x63D0;&#x4EA4;&#x672A;&#x5B8C;&#x6210;&#x5DE5;&#x4F5C;--dont-commit-half-done-work"><a name="&#x4E0D;&#x8981;&#x63D0;&#x4EA4;&#x672A;&#x5B8C;&#x6210;&#x5DE5;&#x4F5C;--dont-commit-half-done-work" class="anchor-navigation-ex-anchor" href="#&#x4E0D;&#x8981;&#x63D0;&#x4EA4;&#x672A;&#x5B8C;&#x6210;&#x5DE5;&#x4F5C;--dont-commit-half-done-work"><i class="fa fa-link" aria-hidden="true"></i></a>1.8.3. &#x4E0D;&#x8981;&#x63D0;&#x4EA4;&#x672A;&#x5B8C;&#x6210;&#x5DE5;&#x4F5C; | DON&apos;T COMMIT HALF-DONE WORK</h3>
<p>&#x4F60;&#x5E94;&#x8BE5;&#x4EC5;&#x63D0;&#x4EA4;&#x5DF2;&#x5B8C;&#x6210;&#x4EE3;&#x7801;,&#x8FD9;&#x5E76;&#x4E0D;&#x610F;&#x5916;&#x7740;&#x63D0;&#x4EA4;&#x524D;&#x4F60;&#x4E0D;&#x5F97;&#x4E0D;&#x5B8C;&#x6210;&#x4E00;&#x4E2A;&#x5B8C;&#x6574;&#x7684;,&#x5F88;&#x5927;&#x7684;&#x529F;&#x80FD;&#x5206;&#x652F;.&#x6070;&#x6070;&#x76F8;&#x53CD;,&#x5C06;&#x529F;&#x80FD;&#x5206;&#x652F;&#x5212;&#x5206;&#x6210;&#x5F88;&#x591A;&#x903B;&#x8F91;&#x5757;&#x5E76;&#x4E14;&#x8BB0;&#x5F97;&#x65E9;&#x4E00;&#x70B9;,&#x9891;&#x7E41;&#x4E9B;&#x63D0;&#x4EA4;.
&#x5982;&#x679C;&#x4EC5;&#x4EC5;&#x662F;&#x4E3A;&#x4E86;&#x4E0B;&#x73ED;&#x524D;&#x4ED3;&#x5E93;&#x8BE5;&#x6709;&#x70B9;&#x4EC0;&#x4E48;&#x5C31;&#x4E0D;&#x8981;&#x63D0;&#x4EA4;,&#x5982;&#x679C;&#x4F60;&#x5C1D;&#x8BD5;&#x63D0;&#x4EA4;&#x4EC5;&#x4EC5;&#x662F;&#x56E0;&#x4E3A;&#x4F60;&#x9700;&#x8981;&#x4E00;&#x4E2A;&#x5E72;&#x51C0;&#x7684;&#x5DE5;&#x4F5C;&#x526F;&#x672C;(&#x68C0;&#x51FA;&#x5206;&#x652F;,&#x62C9;&#x53D6;&#x66F4;&#x6539;),&#x8003;&#x8651;&#x4F7F;&#x7528; <code>git</code> &#x7684; <code>stash</code> &#x7279;&#x6027;. </p>
<p>You should only commit code when it&apos;s completed.
This doesn&apos;t mean you have to complete a whole ,large feature before commiting.
Quite the contrary:split the feature&apos;s implementatiion into logical chunks and remember to commit early and often.
But don&apos;t commit just to have something in the repository before leaving the ofice at the end of the day.
If you&apos;re tempted to commit just because you need a clean working copy (to check out a branch,pull in changes ,etc.) consider using <a href="../../GLOSSARY.html#git" class="glossary-term" title="&#x5206;&#x5E03;&#x5F0F;&#x7248;&#x672C;&#x63A7;&#x5236;&#x7CFB;&#x7EDF;,&#x8BE6;&#x60C5;&#x8BF7;&#x53C2;&#x8003; https://xinwuyun.github.io/git/">Git</a>&apos;s <stash> feature instead.</stash></p>
<h3 id="&#x63D0;&#x4EA4;&#x524D;&#x6D4B;&#x8BD5;&#x4EE3;&#x7801;--test-code-before-you-commit"><a name="&#x63D0;&#x4EA4;&#x524D;&#x6D4B;&#x8BD5;&#x4EE3;&#x7801;--test-code-before-you-commit" class="anchor-navigation-ex-anchor" href="#&#x63D0;&#x4EA4;&#x524D;&#x6D4B;&#x8BD5;&#x4EE3;&#x7801;--test-code-before-you-commit"><i class="fa fa-link" aria-hidden="true"></i></a>1.8.4. &#x63D0;&#x4EA4;&#x524D;&#x6D4B;&#x8BD5;&#x4EE3;&#x7801; | TEST CODE BEFORE YOU COMMIT</h3>
<p>&#x62B5;&#x5236;&#x81EA;&#x4EE5;&#x4E3A;&#x5DF2;&#x5B8C;&#x6210;&#x7684;&#x63D0;&#x4EA4;.
&#x76F4;&#x63A5;&#x6D4B;&#x8BD5;&#x6765;&#x786E;&#x4FDD;&#x5B83;&#x771F;&#x7684;&#x5DF2;&#x5B8C;&#x6210;&#x5E76;&#x4E14;&#x6CA1;&#x6709;&#x526F;&#x4F5C;&#x7528;(&#x663E;&#x800C;&#x6613;&#x89C1;&#x7684;).
&#x5F53;&#x63D0;&#x4EA4;&#x534A;&#x6210;&#x54C1;&#x5230;&#x672C;&#x5730;&#x4ED3;&#x5E93;&#x65F6;&#x8981;&#x6C42;&#x4F60;&#x4E0D;&#x5F97;&#x4E0D;&#x81EA;&#x6211;&#x8C05;&#x89E3;,&#x8BA9;&#x4F60;&#x7684;&#x4EE3;&#x7801;&#x8FDB;&#x8FC7;&#x6D4B;&#x8BD5;&#x5BF9;&#x53D1;&#x5E03;&#x6216;&#x8005;&#x5206;&#x4EAB;&#x4F60;&#x7684;&#x4EE3;&#x7801;&#x4E5F;&#x5F88;&#x91CD;&#x8981;.</p>
<p>Resist the temptation to commit something that you <em>think</em> is completed.
Test it thoroughly to make sure it really is completed and has no side effect (as far as one can tell).
While committing half-baked thing in your local repository only requires you to forgive yourself,having your code tested is even more important when it comes to publishing/sharing your code with others.</p>
<h3 id="&#x7F16;&#x5199;&#x4EE3;&#x7801;&#x63D0;&#x4EA4;&#x4FE1;&#x606F;--write-code-commit-message"><a name="&#x7F16;&#x5199;&#x4EE3;&#x7801;&#x63D0;&#x4EA4;&#x4FE1;&#x606F;--write-code-commit-message" class="anchor-navigation-ex-anchor" href="#&#x7F16;&#x5199;&#x4EE3;&#x7801;&#x63D0;&#x4EA4;&#x4FE1;&#x606F;--write-code-commit-message"><i class="fa fa-link" aria-hidden="true"></i></a>1.8.5. &#x7F16;&#x5199;&#x4EE3;&#x7801;&#x63D0;&#x4EA4;&#x4FE1;&#x606F; | WRITE CODE COMMIT MESSAGE</h3>
<p>&#x5BF9;&#x4F60;&#x7684;&#x66F4;&#x6539;&#x4EE5;&#x7B80;&#x77ED;&#x603B;&#x7ED3;&#x8FDB;&#x884C;&#x63CF;&#x8FF0;(&#x8FBE;&#x5230;50&#x5B57;&#x7B26;&#x4F5C;&#x4E3A;&#x51C6;&#x5219;).
&#x4EE5;&#x5305;&#x62EC;&#x7A7A;&#x767D;&#x884C;&#x4F5C;&#x4E3A;&#x5206;&#x5272;&#x4E0B;&#x8FF0;&#x5185;&#x5BB9;.
&#x63D0;&#x4EA4;&#x4FE1;&#x606F;&#x4F53;&#x5E94;&#x8BE5;&#x63D0;&#x4F9B;&#x4E0B;&#x8FF0;&#x95EE;&#x9898;&#x7684;&#x8BE6;&#x7EC6;&#x7B54;&#x6848;:</p>
<ul>
<li>&#x6B64;&#x6B21;&#x66F4;&#x6539;&#x7684;&#x52A8;&#x673A;&#x662F;&#x4EC0;&#x4E48;?</li>
<li>&#x548C;&#x4E0A;&#x4E00;&#x4E2A;&#x5B9E;&#x73B0;&#x6709;&#x4EC0;&#x4E48;&#x4E0D;&#x540C;?</li>
</ul>
<p>&#x4F7F;&#x7528;&#x5FC5;&#x8981;&#x7684;&#x73B0;&#x5728;&#x65F6;&#x8BED;&#x6001;(&#x66F4;&#x6539;,&#x4E0D;&#x662F;&#x5DF2;&#x66F4;&#x6539;,&#x6216;&#x8005;&#x53D8;&#x66F4;)&#x548C;&#x4F7F;&#x7528;&#x5F62;&#x5982; <code>git merge</code> &#x547D;&#x4EE4;&#x751F;&#x6210;&#x7684;&#x4FE1;&#x606F;&#x4FDD;&#x6301;&#x4E00;&#x81F4;.</p>
<p>Begin your message with short summary of your changes(up to 50 characters as a guideline).
Separate it from the following body by including a blank line.
The body of your message should provide detailed answers to the following questions:</p>
<ul>
<li>What was the motivation for the change?</li>
<li>How does it differ from the previous implementation?</li>
</ul>
<p>Use the imperative ,present tense(<code>change</code>,not <code>changed</code> or <code>changes</code>) to be consistent with generated messages from commands like <a href="../../GLOSSARY.html#git" class="glossary-term" title="&#x5206;&#x5E03;&#x5F0F;&#x7248;&#x672C;&#x63A7;&#x5236;&#x7CFB;&#x7EDF;,&#x8BE6;&#x60C5;&#x8BF7;&#x53C2;&#x8003; https://xinwuyun.github.io/git/">git</a> merge.</p>
<h3 id="&#x7248;&#x672C;&#x63A7;&#x5236;&#x4E0D;&#x662F;&#x4E00;&#x4E2A;&#x5907;&#x4EFD;&#x7CFB;&#x7EDF;--version-control-is-not-a-backup-system"><a name="&#x7248;&#x672C;&#x63A7;&#x5236;&#x4E0D;&#x662F;&#x4E00;&#x4E2A;&#x5907;&#x4EFD;&#x7CFB;&#x7EDF;--version-control-is-not-a-backup-system" class="anchor-navigation-ex-anchor" href="#&#x7248;&#x672C;&#x63A7;&#x5236;&#x4E0D;&#x662F;&#x4E00;&#x4E2A;&#x5907;&#x4EFD;&#x7CFB;&#x7EDF;--version-control-is-not-a-backup-system"><i class="fa fa-link" aria-hidden="true"></i></a>1.8.6. &#x7248;&#x672C;&#x63A7;&#x5236;&#x4E0D;&#x662F;&#x4E00;&#x4E2A;&#x5907;&#x4EFD;&#x7CFB;&#x7EDF; | VERSION CONTROL IS NOT A BACKUP SYSTEM</h3>
<p>&#x5728;&#x8FDC;&#x7A0B;&#x670D;&#x52A1;&#x5668;&#x5B58;&#x6709;&#x6587;&#x4EF6;&#x7684;&#x5907;&#x4EFD;&#x662F;&#x7248;&#x672C;&#x63A7;&#x5236;&#x7CFB;&#x7EDF;&#x7684;&#x4E00;&#x4E2A;&#x5F88;&#x597D;&#x526F;&#x4F5C;&#x7528;.&#x4F46;&#x662F;&#x4F60;&#x4E0D;&#x5E94;&#x8BE5;&#x5C06;<code>VCS</code> &#x89C6;&#x4E3A;&#x4E00;&#x4E2A;&#x5907;&#x4EFD;&#x7CFB;&#x7EDF;.
&#x5F53;&#x505A;&#x7248;&#x672C;&#x63A7;&#x5236;&#x65F6;,&#x4F60;&#x5E94;&#x8BE5;&#x6CE8;&#x610F;&#x8BED;&#x4E49;&#x5316;&#x63D0;&#x4EA4;,&#x800C;&#x4E0D;&#x662F;&#x6B7B;&#x8BB0;&#x786C;&#x80CC;&#x6587;&#x4EF6;.</p>
<p>Having your files backed up on a remote server is a nice side effect of having a version control system.
But you should not use your <code>VCS</code> like it was a backup system.
When doing version control,you should pay attention to committing semantically(see <code>related changes</code>) - you shouldn&apos;t just cram in files.</p>
<h3 id="&#x5229;&#x7528;&#x5206;&#x652F;--use-branches"><a name="&#x5229;&#x7528;&#x5206;&#x652F;--use-branches" class="anchor-navigation-ex-anchor" href="#&#x5229;&#x7528;&#x5206;&#x652F;--use-branches"><i class="fa fa-link" aria-hidden="true"></i></a>1.8.7. &#x5229;&#x7528;&#x5206;&#x652F; | USE BRANCHES</h3>
<p>&#x5206;&#x652F;&#x662F; <code>git</code> &#x6700;&#x5F3A;&#x5927;&#x7684;&#x7279;&#x6027;&#x4E4B;&#x4E00;,&#x8FD9;&#x4E0D;&#x662F;&#x5076;&#x7136;.
&#x4ECE;&#x7B2C;&#x4E00;&#x5929;&#x5F00;&#x59CB;&#x5FEB;&#x901F;&#x800C;&#x7B80;&#x5355;&#x7684;&#x5206;&#x652F;&#x5C31;&#x662F;&#x4E00;&#x4E2A;&#x6838;&#x5FC3;&#x9700;&#x6C42;.
&#x5206;&#x652F;&#x662F;&#x5E2E;&#x52A9;&#x4F60;&#x907F;&#x514D;&#x5F04;&#x6DF7;&#x4E0D;&#x540C;&#x5F00;&#x53D1;&#x7EBF;&#x7684;&#x5B8C;&#x7F8E;&#x5DE5;&#x5177;.
&#x5728;&#x4F60;&#x7684;&#x5F00;&#x53D1;&#x6D41;&#x7A0B;&#x4E2D;&#x5E94;&#x8BE5;&#x5E7F;&#x6CDB;&#x4F7F;&#x7528;&#x5206;&#x652F;,&#x50CF;&#x65B0;&#x529F;&#x80FD;,&#x4FEE;&#x590D; bug,&#x65B0;&#x60F3;&#x6CD5;...</p>
<p>Branching is one of <a href="../../GLOSSARY.html#git" class="glossary-term" title="&#x5206;&#x5E03;&#x5F0F;&#x7248;&#x672C;&#x63A7;&#x5236;&#x7CFB;&#x7EDF;,&#x8BE6;&#x60C5;&#x8BF7;&#x53C2;&#x8003; https://xinwuyun.github.io/git/">Git</a>&apos;s most powerful features-and this is not by accident:quick and easy branching was a central requirement from day one.
Branches are the perfect tool to help you avoid mixing up different lines of development.
You should use branches extensively in your development workflows:for new features,bug fixes,ideas...</p>
<h3 id="&#x8BA4;&#x540C;&#x5DE5;&#x4F5C;&#x6D41;--agree-on-a-workflow"><a name="&#x8BA4;&#x540C;&#x5DE5;&#x4F5C;&#x6D41;--agree-on-a-workflow" class="anchor-navigation-ex-anchor" href="#&#x8BA4;&#x540C;&#x5DE5;&#x4F5C;&#x6D41;--agree-on-a-workflow"><i class="fa fa-link" aria-hidden="true"></i></a>1.8.8. &#x8BA4;&#x540C;&#x5DE5;&#x4F5C;&#x6D41; | AGREE ON A WORKFLOW</h3>
<p><code>Git</code> &#x5141;&#x8BB8;&#x4F60;&#x4ECE;&#x5927;&#x91CF;&#x4E0D;&#x540C;&#x7684;&#x5DE5;&#x4F5C;&#x6D41;&#x4E2D;&#x9009;&#x62E9;&#x4E00;&#x4E2A;:&#x957F;&#x671F;&#x8FD0;&#x884C;&#x7684;&#x5206;&#x652F;,&#x4E3B;&#x9898;&#x5206;&#x652F;,&#x5408;&#x5E76;&#x6216;&#x53D8;,&#x57FA;&#x5DE5;&#x4F5C;&#x6D41;...
&#x5177;&#x4F53;&#x9009;&#x62E9;&#x54EA;&#x4E00;&#x4E2A;&#x53D6;&#x51B3;&#x4E8E;&#x4E00;&#x7CFB;&#x5217;&#x56E0;&#x7D20;:&#x4F60;&#x7684;&#x9879;&#x76EE;,&#x4F60;&#x7684;&#x603B;&#x4F53;&#x5F00;&#x53D1;&#x548C;&#x90E8;&#x7F72;&#x5DE5;&#x4F5C;&#x6D41;&#x548C;(&#x53EF;&#x80FD;&#x662F;&#x6700;&#x91CD;&#x8981;&#x7684;)&#x4F60;&#x548C;&#x4F60;&#x7684;&#x56E2;&#x961F;&#x7684;&#x4E2A;&#x4EBA;&#x504F;&#x597D;.
&#x4E0D;&#x8BBA;&#x4F60;&#x9009;&#x62E9;&#x54EA;&#x4E00;&#x4E2A;&#x53BB;&#x5DE5;&#x4F5C;,&#x4F60;&#x9700;&#x8981;&#x786E;&#x4FDD;&#x51C6;&#x5B88;&#x4E00;&#x4E2A;&#x5927;&#x5BB6;&#x90FD;&#x8BA4;&#x540C;&#x7684;&#x5DE5;&#x4F5C;&#x6D41;.</p>
<p><a href="../../GLOSSARY.html#git" class="glossary-term" title="&#x5206;&#x5E03;&#x5F0F;&#x7248;&#x672C;&#x63A7;&#x5236;&#x7CFB;&#x7EDF;,&#x8BE6;&#x60C5;&#x8BF7;&#x53C2;&#x8003; https://xinwuyun.github.io/git/">Git</a> lets you pick from a lot of different workflows:long-running branches,topic branches,merge or rebase,<a href="../../GLOSSARY.html#git" class="glossary-term" title="&#x5206;&#x5E03;&#x5F0F;&#x7248;&#x672C;&#x63A7;&#x5236;&#x7CFB;&#x7EDF;,&#x8BE6;&#x60C5;&#x8BF7;&#x53C2;&#x8003; https://xinwuyun.github.io/git/">git</a>-flow...
Which one you choose depends on a couple of factors:your project,your overall development and deployment workflows and (maybe most importantly ) on your and your teammate&apos;s personal preferences.
However you choose to work,just make sure to agree on a common workflow that everyone follows.</p>
<h3 id="&#x5E2E;&#x52A9;&#x548C;&#x6587;&#x6863;--help--documentation"><a name="&#x5E2E;&#x52A9;&#x548C;&#x6587;&#x6863;--help--documentation" class="anchor-navigation-ex-anchor" href="#&#x5E2E;&#x52A9;&#x548C;&#x6587;&#x6863;--help--documentation"><i class="fa fa-link" aria-hidden="true"></i></a>1.8.9. &#x5E2E;&#x52A9;&#x548C;&#x6587;&#x6863; | HELP &amp; DOCUMENTATION</h3>
<p>&#x547D;&#x4EE4;&#x884C;&#x4E0B;&#x83B7;&#x53D6; <code>git</code> &#x5E2E;&#x52A9;</p>
<pre><code>git help &lt;command&gt;
</code></pre><p><a href="../../GLOSSARY.html#git" class="glossary-term" title="&#x5206;&#x5E03;&#x5F0F;&#x7248;&#x672C;&#x63A7;&#x5236;&#x7CFB;&#x7EDF;,&#x8BE6;&#x60C5;&#x8BF7;&#x53C2;&#x8003; https://xinwuyun.github.io/git/">Git</a> help on the command line</p>
<pre><code>git help &lt;command&gt;
</code></pre><h3 id="&#x514D;&#x8D39;&#x5728;&#x7EBF;&#x8D44;&#x6E90;--free-oneline-resources"><a name="&#x514D;&#x8D39;&#x5728;&#x7EBF;&#x8D44;&#x6E90;--free-oneline-resources" class="anchor-navigation-ex-anchor" href="#&#x514D;&#x8D39;&#x5728;&#x7EBF;&#x8D44;&#x6E90;--free-oneline-resources"><i class="fa fa-link" aria-hidden="true"></i></a>1.8.10. &#x514D;&#x8D39;&#x5728;&#x7EBF;&#x8D44;&#x6E90; | FREE ONELINE RESOURCES</h3>
<ul>
<li><a href="http://www.git-tower.com/learn" target="_blank">http://www.git-tower.com/learn</a></li>
<li><a href="http://rogerdudler.github.io/git-guide/" target="_blank">http://rogerdudler.github.io/git-guide/</a></li>
<li><a href="http://www.git-scm.org/" target="_blank">http://www.git-scm.org/</a></li>
</ul>
<script type="text/javascript">var targetUl = document.getElementsByClassName('page-inner')[0].getElementsByTagName('ul')[0];if(targetUl.getElementsByTagName('a').length>0){targetUl.className='toc';}</script>

<pre><code class="lang-html">&#x4F5C;&#x8005;: &#x96EA;&#x4E4B;&#x68A6;
&#x94FE;&#x63A5;: https://xinwuyun.github.io/git/summary/cheatsheet-translation.html
&#x6765;&#x6E90;: &#x96EA;&#x4E4B;&#x68A6;
&#x672C;&#x6587;&#x539F;&#x521B;&#x53D1;&#x5E03;&#x4E8E;&#x300C;&#x96EA;&#x4E4B;&#x68A6;&#x300D;,&#x8F6C;&#x8F7D;&#x8BF7;&#x6CE8;&#x660E;&#x51FA;&#x5904;,&#x8C22;&#x8C22;&#x5408;&#x4F5C;!
</code></pre>
<p><img src="https://xinwuyun.github.io/xinwuyun-wechat-open.png" alt="https://xinwuyun.github.io/xinwuyun-wechat-open.png"></p>
<div id="gitalk-container"></div> 

<footer class="page-footer">
&#xA9; 2009-2021 xinwuyun.cn &#x7248;&#x6743;&#x6240;&#x6709; <a href="https://beian.miit.gov.cn/" target="_blank">&#x6D59;ICP&#x5907;18042346&#x53F7;</a>
</footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="common.html" class="navigation navigation-prev " aria-label="Previous page: 知识速查">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../../github/" class="navigation navigation-next " aria-label="Next page: github 入门教程">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"备忘录[译]","level":"2.2.6.2","depth":3,"next":{"title":"github 入门教程","level":"2.3","depth":1,"path":"github/README.md","ref":"github/README.md","articles":[{"title":"github 访问速度太慢","level":"2.3.1","depth":2,"path":"github/speedup.md","ref":"github/speedup.md","articles":[]},{"title":"github 徽章从何而来","level":"2.3.2","depth":2,"path":"github/badge.md","ref":"github/badge.md","articles":[]}]},"previous":{"title":"知识速查","level":"2.2.6.1","depth":3,"path":"git/summary/common.md","ref":"git/summary/common.md","articles":[]},"dir":"ltr"},"config":{"plugins":["toc","-lunr","-search","search-plus","splitter","-sharing","sharing-plus","expandable-chapters-small","anchor-navigation-ex","edit-link-plus","code","chart","favicon-absolute","github-buttons","advanced-emoji","rss","sitemap-general","copyright","mygitalk","donate","icp","diff","simple-mind-map","hide-element","audio_image","mermaid-gb3","baidu-tongji-with-multiple-channel","google-tongji-with-multiple-channel"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"diff":{"type":"markdown","method":"diffChars","options":{}},"baidu-tongji-with-multiple-channel":{"url":"https://hm.baidu.com/hm.js","multipleChannelConfig":{"localhost":{"token":"5273b2f99de3bc190886abb53f62267e"},"xinwuyun.tech":{"token":"468a97b20b79bc025d27afbee73d2f39"},"blog.xinwuyun.cn":{"token":"606f5db455f771889dcfd16bb2bd313b"},"xinwuyun.github.io":{"token":"5273b2f99de3bc190886abb53f62267e"},"xinwuyun.gitee.io":{"token":"60ec676f32be4579eb53a430e153f677"},"xinwuyun.gitlab.io":{"token":"187a0e5601c4e4987cdb5b8df09c9b21"},"xinwuyun.gitbook.io":{"token":"6e2ee1b7bea146b2d6d9382bbf803083"}}},"splitter":{},"google-tongji-with-multiple-channel":{"multipleChannelConfig":{"localhost":{"token":"UA-140787039-2"},"xinwuyun.gitbook.io":{"token":"UA-140787039-1"},"xinwuyun.github.io":{"token":"UA-140787039-2"},"xinwuyun.gitee.io":{"token":"UA-140787039-3"},"xinwuyun.gitlab.io":{"token":"UA-140787039-4"},"xinwuyun.tech":{"token":"UA-140787039-5"},"blog.xinwuyun.cn":{"token":"UA-140787039-6"}},"url":"https://www.googletagmanager.com/gtag/js"},"copyright":{"copyProtect":false,"site":"https://xinwuyun.github.io/","author":"雪之梦","website":"雪之梦","image":"https://xinwuyun.github.io/xinwuyun-wechat-open.png"},"toc":{"addClass":true,"className":"toc"},"edit-link-plus":{"label":"编辑本页","base":{"xinwuyun.github.io":"https://github.com/xinwuyun/xinwuyun.github.io/edit/master","xinwuyun.gitlab.io":"https://gitlab.com/xinwuyun/xinwuyun.gitlab.io/edit/master","xinwuyun.gitee.io":"https://gitee.com/xinwuyun/xinwuyun/edit/master"},"defaultBase":"https://github.com/xinwuyun/xinwuyun.github.io/edit/master"},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"code":{"copyButtons":true},"donate":{"title":"","button":"赏","wechat":"/wechat.jpg","alipay":"/alipay.jpg","wechatText":"微信","alipayText":"支付宝"},"favicon-absolute":{"favicon":"/favicon.ico","appleTouchIconPrecomposed152":"/apple-touch-icon-precomposed-152.png","appleTouchIconMore":{},"appleTouchIconPrecomposedMore":{}},"sitemap-general":{"prefix":"https://xinwuyun.github.io/"},"hide-element":{"elements":["a.gitbook-link[href='https://www.gitbook.com']"]},"fontsettings":{"theme":"white","family":"sans","size":2},"rss":{"categories":["markdown","git","github","gitbook","java","php"],"title":"雪之梦","description":"雪之梦静态网站,源码托管于 https://github.com/xinwuyun/xinwuyun.github.io","author":"xinwuyun","site_url":"https://xinwuyun.github.io/","feed_url":"https://xinwuyun.github.io/rss","managingEditor":"zrwangxdu@outlook.com","webMaster":"zrwangxdu@outlook.com"},"audio_image":{},"highlight":{},"mermaid-gb3":{},"anchor-navigation-ex":{"showLevel":true,"associatedWithSummary":true,"mode":"float","showGoTop":true,"printLog":false,"multipleH1":true,"float":{"floatIcon":"fa fa-navicon","showLevelIcon":false,"level1Icon":"","level2Icon":"","level3Icon":""},"pageTop":{"showLevelIcon":false,"level1Icon":"","level2Icon":"","level3Icon":""}},"icp":{"link":"https://beian.miit.gov.cn/","style":{},"label":"&copy 2009-2021 xinwuyun.cn 版权所有 ","number":"浙ICP备18042346号"},"github-buttons":{"buttons":[{"user":"xinwuyun","repo":"xinwuyun.github.io","type":"star","size":"small"}]},"expandable-chapters-small":{},"mygitalk":{"flipMoveOptions":{},"clientID":"3f62415a283d19cbd696","number":-1,"perPage":10,"proxy":"https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token","admin":["xinwuyun"],"createIssueManually":false,"distractionFreeMode":false,"repo":"xinwuyun.github.io","owner":"xinwuyun","enableHotKey":true,"clientSecret":"aed0e1db0620bf5d0e3a3f0225f801997ad74e58","pagerDirection":"last","labels":["Gitalk"]},"advanced-emoji":{"embedEmojis":false},"sharing":{"qq":true,"all":["facebook","google","twitter","weibo","instapaper","linkedin","pocket","stumbleupon"],"douban":true,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":false},"simple-mind-map":{"type":"markdown","preset":"colorful","linkShape":"diagonal","autoFit":true,"style":{}},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"chart":{"type":"c3"},"search-plus":{}},"theme":"default","author":"xinwuyun","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"雪之梦","language":"zh-hans","links":{"sidebar":{"技术博客":"https://blog.xinwuyun.cn/"}},"gitbook":"3.2.3","description":"雪之梦,xinwuyun 搭建的 Gitbook 个人博客,详情请访问 https://xinwuyun.github.io/"},"file":{"path":"git/summary/cheatsheet-translation.md","mtime":"2020-09-05T14:33:57.760Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-02-02T12:37:44.450Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-edit-link-plus/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-rss/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-copyright/plugin.js"></script>
        
    
        
        <script src="https://cdn.bootcss.com/blueimp-md5/2.12.0/js/md5.min.js"></script>
        
    
        
        <script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-mygitalk/mygitalk.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-simple-mind-map/bundle.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-baidu-tongji-with-multiple-channel/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-google-tongji-with-multiple-channel/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

